mod = 998244353 n, k = map(int, input().split()) a = list(map(int, input().split())) print(sum(a) * pow(2, k, mod) % mod)