def Map(): return list(map(int,input().split())) mod = 998244353 N,K = Map() ans = pow(6,-1,mod) print(ans)