#include #include using namespace std; using ll = long long; const int MX = 100010; ll f[MX],inv[MX],fi[MX]; constexpr ll mod = 998244353; void solve(){ inv[1] = 1; for(int i=2;i> n; string s; cin >> s; int k = 0; for(i=0;i