fun main() { val builder = StringBuilder() // 数学嫌いが悪化している気がする val mod = 998244353L val (n, k) = readInputLine().split(" ").map { it.toLong() } val aArr = readInputLine().split(" ").map { it.toLong() }.toLongArray() builder.appendln(aArr.sum() % mod * pow(2L, k, mod) % mod) print(builder.toString()) } fun readInputLine(): String { return readLine()!! } fun pow(x: Long, n: Long, mod: Long): Long { var ret = 1L var base = x var nTmp = n while (nTmp != 0L) { if (nTmp % 2L != 0L) { ret = ret * base % mod } base = base * base % mod nTmp /= 2L } return ret }