import strutils, sequtils, math var input = stdin.readline.split.map(parseint) (n, k) = (input[0], input[1]) echo(if n == 2 and k == 1 : 0 else: 2^(n-k))