using System; class Program { static void Main() { var temp = Console.ReadLine().Split(); int n = int.Parse(temp[0]); int k = int.Parse(temp[1]); int ans = 0; for (int i = 2; i <= n; i++) { int cnt = 0; int t = i; for (int j = 2; j <= i; j++) { if (t % j == 0) cnt++; else continue; if (cnt >= k) { ans++; break; } while (true) { if (t % j == 0) t /= j; else break; } } } Console.WriteLine(ans); } }