import java.util.*;

public class Buffered {
   


    public static void main(String[] args) {

        
      Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        long ans=(long)Math.pow(2,Math.max(n,m));
        System.out.println(ans);
    }
    
}
