#include #define ll long long #define mod 1000000007 using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int t; cin>>t; string m = "hackerrank"; while(t--){ string s; cin>>s; int fl = 0; for(int i = 0; i