MOD = 998244353 n,m = map(int,input().split()) p2 = [1]*(m+1) for i in range(m): p2[i+1] = p2[i]*2%MOD a = pow(2,n,MOD) b = c = f = 1 for i in range(n): b = b*(p2[m]-p2[i])%MOD c = c*(p2[n]-p2[i])%MOD f = f*(i+1)%MOD print(a, b*pow(f,MOD-2,MOD)%MOD, b*pow(c,MOD-2,MOD)%MOD)