#include #include using namespace std; int count(int n){ int cnt = 0; for(int i = 2; i <= n; i++){ if(n%i == 0){ cnt+=1; n/=i; while(n%i == 0) n/=i; } } return cnt; } int main(){ int n, k; cin >> n >> k; int ans = n-1; for(int i = 2; i <= n; i++){ if(count(i) < k) ans--; } cout << ans << endl; return 0; }