#include #include int n,k; int main() { int i; int count = 0; long int powers_n; long int powers_k; scanf("%d %d", &n, &k); powers_n = pow(2,n); powers_k = pow(2,k); for(i = 1;i <= powers_n;i++) { if(powers_k * i <= powers_n) { count++; } } printf("%d\n",count); return (0); }