#include using namespace std; //#include //using namespace atcoder; using ll=long long; using Graph=vector>; #define MAX 200003 #define MOD 998244353 #define INF 1000000000 ll modpow(ll a,ll x){ ll ret=1; a%=MOD; while(x>0){ if(x%2==1){ ret=ret*a%MOD; } a=a*a%MOD; x>>=1; } return ret; } ll modinv(ll x){ return modpow(x,MOD-2); } int main(){ ll N; ll K; cin>>N>>K; vector A(N); ll sum=0; for(int i=0;i>A[i]; sum+=A[i]; } sum%=MOD; sum*=modpow(2,K); sum%=MOD; cout<