import scala.io.StdIn object Problem175 { def proc(L: Int, N: Int): Int = { Math.pow(2, L - 3).toInt * N } def main(args: Array[String]) { val L = StdIn.readInt() val N = StdIn.readInt() val S = StdIn.readLine() val result: Int = proc(L, N) println(result) } }