#include using namespace std; using ll=long long; using pll=pair; using tll=tuple; using ld=long double; const ll INF=(1ll<<60); #define rep(i,n) for (ll i=0;i<(ll)(n);i++) #define all(v) v.begin(),v.end() template inline bool chmin(T &a,T b){ if(a>b){ a=b; return true; } return false; } template inline bool chmax(T &a,T b){ if(a using mint=atcoder::modint998244353; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll t; cin >> t; mint x=26; while(t--){ ll l; cin >> l; cout << (x*(x.pow(l)-1)/(x-1)).val() << '\n'; } }