#include using namespace std; #define dbg(x) { cout<<#x<<" : "<>q; while(q--){ cin>>b; int len=b.size(); j=i=0; while(i