#include using namespace std; using uint = unsigned int; using ll = long long; using ull = unsigned long long; template using V = vector; template using VV = V>; template using VVV = V>; template using VVVV = VV>; #define rep(i,n) for(ll i=0ll;i bool chmin(T& t, const U& u) { if (t > u){ t = u; return 1;} return 0; } template bool chmax(T& t, const U& u) { if (t < u){ t = u; return 1;} return 0; } struct Combination{ vector fac, inv, finv; long long MOD; Combination(long long N = 200100, long long p = 998244353) : fac(N, 1), inv(N, 1), finv(N, 1), MOD(p){ for(long long i = 2; i < N; i++){ fac[i] = fac[i-1] * i % MOD; inv[i] = MOD - inv[MOD%i] * (MOD/i) % MOD; finv[i] = finv[i-1] * inv[i] % MOD; } } long long com(long long n, long long k){ if(n < k) return 0; if(n < 0 || k < 0) return 0; return fac[n] * finv[k] % MOD * finv[n-k] % MOD; } long long per(long long n, long long k){ if(n < k) return 0; if(n < 0 || k < 0) return 0; return fac[n] * finv[n-k] % MOD; } }; long long modpow(long long n, long long k, long long p = mod){ long long a = n % p; long long ans = 1; while(k != 0) { if(k & 1) ans = ans * a % p; k /= 2; a = a * a % p; } return ans; } // n^(-1) ≡ b (mod p) となる b を求める long long modinv(long long n, long long p = mod) { // if(n == 1) return 1; // return p - modinv(p % n) * (p / n) % p; return modpow(n, p - 2, p); } // n^k ≡ b (mod p) となる最小の k を求める long long modlog(long long n, long long b, long long p = mod){ long long sqrt_p = sqrt(p); unordered_map n_pow; long long memo = 1; for(long long i = 0; i < sqrt_p; i ++){ if(!n_pow.count(memo)) n_pow[memo] = i; memo = memo * n % p; } memo = modinv(memo, p); long long ans = 0; while(!n_pow.count(b)){ if(ans >= p) return -1; ans += sqrt_p; b = b * memo % p; } ans += n_pow[b]; return ans % (p - 1); } // ax + by = gcd(a, b) を満たす (x, y) が格納される long long ext_gcd(long long a, long long b, long long &x, long long &y){ if(b == 0){ x = 1; y = 0; return a; } long long d = ext_gcd(b, a%b, y, x); y -= a/b*x; return d; } void solve(){ ll n, k; cin >> n >> k; ll s = 0; rep(i,n){ ll x; cin >> x; s += x; } ll ans = s * modpow(2, k, mod99) % mod99; cout << (ans)%mod99 << endl; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int t=1; // cin >> t; rep(i,t) solve(); }