#include using namespace std; using ll=long long; const int MOD2=998244353; ll modpow(ll a, ll b, ll p){ ll ans = 1; while(b){ if(b & 1) (ans *= a) %= p; (a *= a) %= p; b /= 2; } return ans; } inline char tc(void){ static char fl[10000],*A=fl,*B=fl; return A==B&&(B=(A=fl)+fread(fl,1,10000,stdin),A==B)?EOF:*A++; } inline int read(void){ int a=0;char c; while((c=tc())<'0'||c>'9'); while(c>='0'&&c<='9')a=a*10+c-'0',c=tc(); return a; } int main(){ int n,x; long long int k,sum=0; cin>>n>>k; while(n--){ x=read(); sum+=x; } printf("%lld\n",((sum%MOD2)*modpow(2,k,MOD2))%MOD2); }