#include using namespace std; int have[123456]; signed main(){ int n,k;cin>>n>>k; for(int i=2;i<=n;i++){ if(have[i])continue; for(int j=i;j<=n;j+=i)have[j]++; } int ans=0; for(int i=2;i<=n;i++)ans+=have[i]>=k; cout<