import math, strutils let l, n: int = stdin.readline.parseInt s: string = stdin.readline ans: int = 2 ^ (l - 3) * n echo ans