#! ruby # yukicoder My Practice # author: Leonardone @ NEETSDKASU L = gets.to_i N = gets.to_i S = gets.chomp.split puts (1 << (L - 3)).*(N)