using System.Numerics; using System; public class Hello { public static int MOD = 998244353; static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = long.Parse(line[1]); line = Console.ReadLine().Trim().Split(' '); var asum = 0L; for (int i = 0; i < n; i++) { asum += long.Parse(line[i]); asum %= MOD; } getAns(k, asum); } static void getAns(long k, long asum ) { var ans = BigInteger.ModPow(2, k, MOD); ans *= asum; ans %= MOD; Console.WriteLine(ans); } }