n, k = map(int, input().split()) assert 1 <= n <= 10**9 assert 0 <= k <= 5 print(pow(6, -1, 998244353))