#include #define rep(i,n) for(int i=0;i<(int)(n);i++) #define FOR(i,n,m) for(int i=(int)(n); i<=(int)(m); i++) #define RFOR(i,n,m) for(int i=(int)(n); i>=(int)(m); i--) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define RITR(x,c) for(__typeof(c.rbegin()) x=c.rbegin();x!=c.rend();x++) #define setp(n) fixed << setprecision(n) template bool chmax(T &a, const T &b) { if (a bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; } #define ll long long #define vll vector #define vi vector #define pll pair #define pi pair #define all(a) (a.begin()),(a.end()) #define rall(a) (a.rbegin()),(a.rend()) #define fi first #define se second #define pb push_back #define ins insert #define debug(a) cerr<<(a)< ostream &operator<<(ostream &os, const pair &p){return os<<"("< istream &operator>>(istream &is, pair &p){return is>>p.fi>>p.se;} //------------------------------------------------- //--ModInt //------------------------------------------------- const uint_fast64_t MOD = 998244353; class mint { private: using Value = uint_fast64_t; Value n; public: mint():n(0){} mint(int_fast64_t _n):n(_n<0 ? MOD-(-_n)%MOD : _n%MOD){} mint(const mint &m):n(m.n){} friend ostream& operator<<(ostream &os, const mint &a){ return os << a.n; } friend istream& operator>>(istream &is, mint &a){ Value temp; is>>temp; a = mint(temp); return is; } mint& operator+=(const mint &m){n+=m.n; n=(n>=1; } return ret; } mint inv() const {return pow(MOD-2);} }; // sum{A} + ∑_i=0^{K-1} N*2^{K-i-1}*E[A] // = sum{A}*(1 + ∑_i=0^{K-1} 2^{K-i-1}) // = sum{A}*2^K //------------------------------------------------- int main(void) { cin.tie(0); ios::sync_with_stdio(false); ll N,K; cin>>N>>K; vll a(N); rep(i,N) cin>>a[i]; mint sum = 0; rep(i,N) sum+=a[i]; mint ans = sum*mint(2).pow(K); cout<