#define MD 998244353
ll@k,a=0;
Mint z=1;
rep(k){
	ll@l,@m;
	rep(m)rep(i,l)z*=i+1;
	rep(i,m)z*=i+1;
	a+=l*m;
}
z=1/z;
rep(i,a)z*=i+1;
wt(z);