N=int(input()) mod=998244353 result=N*(N-1)*(N-2)*(N-3)//24 result*=pow(26,N-4,mod) result%=mod print(result)