#include #include using namespace std; using namespace atcoder; typedef modint998244353 mint; typedef long long ll; int main(){ int w; cin >> w; int h; cin >> h; dsu uf(w+10); for (int i=0; i> s; vector zen(26, -1); for (int j=0; j r; for (int j=0; j<10; j++){ r.insert(uf.leader(w+j)); } if (r.size() < 10){ cout << 0 << "\n"; }else{ mint ans = 1; for (int j=0; j