local mod = 998244353 local mfl = math.floor local function bmul(x, y) local x0, y0 = x % 31596, y % 31596 local x1, y1 = mfl(x / 31596), mfl(y / 31596) return (x1 * y1 * 62863 + (x1 * y0 + x0 * y1) * 31596 + x0 * y0) % mod end local function modpow(src, pow) local res = 1 while 0LL < pow do if pow % 2LL == 1LL then res = bmul(res, src) end src = bmul(src, src) pow = pow / 2LL end return res end local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end local n, k = io.read():match("(%d+) (%d+)") n = tonumber(n) k = lltonumber(k) local v = 0 for i = 1, n do v = v + io.read("*n") end print(bmul(v % mod, modpow(2, k)))