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