#include #define rep(i, n) for(int i= 0; i < (n); i++) using ll= long long int; using namespace std; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } ll mod= 1e9 + 7; ll mmod= 998244353; ll RepeatSquaring(ll N, ll P, ll M){ if(P==0) return 1; if(P%2==0){ ll t = RepeatSquaring(N, P/2, M); return t*t % M; } return N * RepeatSquaring(N, P-1, M)%M; } int main(){ int n; ll k; cin >>n >>k; cout << k << endl; ll a[n]; ll sum=0; rep(i,n){cin >> a[i];sum+=a[i];} cout << (RepeatSquaring((ll)2,k,mmod)*sum)%mmod << endl; }