fun main() { val (n, x) = readLine()!!.split(" ").map { it.toLong() } println(readLine()!!.split(" ").sumOf { it.toLong() } - (n - 1) * x) }