#include using namespace std; #define modulo 998244353 #define mod(mod_x) ((((long long)mod_x)+modulo)%modulo) #define Inf 1000000000000 bool check(string &S){ char c = 'x'; int last = -1; for(int i=0;i>T; for(int _=0;_>N; string S; cin>>S; bool f = false; if(S.size()>=3){ for(int i=0;i=4){ for(int i=0;i