import sequtils, strutils, math let nk = stdin.readLine.split.map parseInt n = nk[0] k = nk[1] d = n - k if d < 0: echo 0 else: echo 2^d