N, K = gets.split.map(&:to_i) if N >= K puts 2**(N-K) else puts0 end