#include typedef long long ll; int main(){ ll N; int K; scanf("%lld %d", &N, &K); int res = 0; for(ll i=2;i<=N;i++){ ll x = i; int count = 0; for(ll j=2;j*j 1){count++;} if(count >= K){ res++; } } printf("%d\n", res); }