import strutils, sequtils, math let tmp = stdin.readline.split.map(parseInt) (N, K) = (tmp[0], tmp[1]) if K == 1: 0.echo else: echo(2^(N-K))