import java.util.*; class Main{ public static void main(String[] $) { Scanner s=new Scanner(System.in); System.out.println((int)Math.pow(2,s.nextInt()-s.nextInt())); } }