import java.util.*; public class Main { static final int MOD = 998244353; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long k = sc.nextLong(); long total = 0; for (int i = 0; i < n; i++) { total += sc.nextInt(); } total %= MOD; System.out.println(total * pow(2, k) % MOD); } static long pow(long x, long p) { if (p == 0) { return 1; } else if (p % 2 == 0) { return pow(x * x % MOD, p / 2); } else { return pow(x, p - 1) * x % MOD; } } }