const MOD: isize = 998244353; use std::io; fn mod_power(b: isize, t: isize) -> isize { if t == 0 { return 1isize; } if t == 1 { return b; } let x = mod_power(b, t / 2); x * x % MOD * mod_power(b, t % 2) % MOD } fn main() { let mut nk = String::new(); io::stdin().read_line(&mut nk).ok(); let mut nk = nk.trim().split_whitespace(); let _n: isize = nk.next().unwrap().parse().unwrap(); let k: isize = nk.next().unwrap().parse().unwrap(); let mut a = String::new(); io::stdin().read_line(&mut a).ok(); let a = a.trim().split_whitespace() .map(|x| x.parse::().unwrap()).sum::(); println!("{}", a * mod_power(2, k) % MOD); }