mod = 998244353 def main(): n = int(input()) t = n * (n-1) * (n-2) * (n-3) // 24 t %= mod ans = t * pow(26, n-4, mod) % mod return ans print(main())