class Calc0175 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @l = args.shift.first.to_i @n = args.shift.first.to_i @ss = args end def run 2 ** (@l - 3) * @n end end puts Calc0175.new(STDIN.readlines).run if __FILE__ == $0