import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.Comparator; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { new Main().run(); } final long MOD=998244353; long[] p2=new long[(int)1e6]; { p2[0]=1; for (int i=1;i=n-k+1;--i) ret=ret*i%MOD; for (long i=1;i<=k;++i) ret=ret*inv(i)%MOD; return ret; } long pow(long a,long n) { return n==0?1:(pow(a*a%MOD,n/2)*(n%2==1?a:1))%MOD; } void run() { FastScanner sc=new FastScanner(); int N=sc.nextInt();// size N int M=sc.nextInt();// [0,2^M) long v0=p2[N],v1=1,v2=1; for (int i=0;i