#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  long long int dp[n + 1];
  for (int i = 1; i <= n; i++) {
    dp[i] = 1;
  }
  while (k) {
    for (int i = 1; i <= n; i++) {
      int m = 2 * i;
      while (m <= n) {
        dp[i] = (dp[i] % 1000000007 + dp[m] % 1000000007) % 1000000007;
        m += i;
      }
    }
    k--;
  }
  cout << dp[1] % 1000000007 << endl;
  return 0;
}
