#include using namespace std; using LL=long long; using ULL=unsigned long long; #define rep(i,n) for(int i=0;i<(n);i++) template struct static_modint { ULL x; static_modint(ULL val = 0) : x(val) {} template::value&& is_unsigned::value, void*> isUnsignedInt = nullptr> static static_modint mod_construct(intTy val) { return static_modint(val % M); } template::value&& is_signed::value, void*> isSignedInt = nullptr> static static_modint mod_construct(intTy val) { LL buf = val % (LL)M; if (buf < 0) buf += M; return static_modint((ULL)buf); } static_modint operator-() const { if (x == 0) return 0; else return M - x; } static_modint& operator+=(static_modint r) { x += r.x; if (x >= M) x -= M; return *this; } static_modint operator+(static_modint r) const { static_modint res = x; return res += r; } static_modint& operator-=(static_modint r) { x += M - r.x; if (x >= M) x -= M; return *this; } static_modint operator-(static_modint r) const { static_modint res = x; return res -= r; } static_modint& operator*=(static_modint r) { x = x * r.x % M; return *this; } static_modint operator*(static_modint r) const { return static_modint(x * r.x % M); } static_modint pow(ULL r) const { if (r == 0) return static_modint(1); static_modint res = pow(r / 2); res *= res; if (r % 2) res *= *this; return res; } static_modint inv() const { return pow(M - 2); } static_modint& operator/=(static_modint r) { *this *= r.inv(); return *this; } static_modint operator/(static_modint r) const { return *this * r.inv(); } ULL& operator*() { return x; } const ULL& operator*() const { return x; } bool operator==(static_modint r) const { return x == *r; } bool operator!=(static_modint r) const { return x != *r; } }; using MLL = static_modint<998244353>; int main(){ int N; ULL K; cin>>N>>K; MLL A = 0; rep(i,N){ int a; cin>>a; A+=a; } A *= MLL(2).pow(K); cout<<*A<