//#include #include #include using namespace std; //using namespace atcoder; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector>; Graph G; vll E; vector seen; int main() { ll N,K; cin>>N>>K; vll P(N+2,0); for(ll i=2;i<=N;i++){ if(P[i]==0){ for(ll j=i;j<=N;j+=i){ P[j]++; } } } ll an=0; rep(i,N+1){ if(P[i]>=K)an++; } cout<