import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.NoSuchElementException; public class Main{ public static void main(String[] args) { new Main().run(); } final long mod=998244353; long pow(long a, long n) { if (n==0) return 1; return pow(a*a%mod,n/2)*(n%2==1?a:1)%mod; } long inv(long a) { return pow(a,mod-2); } long c(long n, int k) { long ret=1; for (int i=0;i