n, m = map(int, input().split()) res, uku, dom = 1, 1, 1 MOD = 998244353 for i in range(n): res *= pow(2, m, MOD) - pow(2, i, MOD) uku *= pow(2, n, MOD) - pow(2, i, MOD) dom *= i+1 res %= MOD uku %= MOD dom %= MOD def div(x, y): return x * pow(y, MOD - 2, MOD) % MOD print(pow(2, n, MOD), div(res, dom), div(res, uku))