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