import java.util.*; class Main{ public static void main (String[] args) { Scanner s = new Scanner(System.in); int a =s.nextInt(); int b =s.nextInt(); int n = (int)Math.pow(2,a); int m = (int)Math.pow(2,b); int t = m/n; if(n>m){ System.out.println(0); }else{ System.out.println(t); } } }