package test.demo; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class YukicoderN820 { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ BufferedReader bf=new BufferedReader(new InputStreamReader(System.in)); try { String str=bf.readLine(); String[] str2=str.split(" "); if(str2.length==2) { int a=Integer.parseInt(str2[0]); int b=Integer.parseInt(str2[1]); System.out.println(new YukicoderN820().test(a,b)); }else { throw new IOException(); } return; } catch (IOException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } } public int test(int a,int b) { int c=0; for(int i=1;i<=Math.pow(2, a);i++) { if(i%Math.pow(2, b)==0) { c++; } } return c; } }