#include <bits/stdc++.h>
using namespace std;
long long mpow(long long a, long long n) {
  long long ret = 1;
  long long b = a;
  while (n) {
    if (n & 1) ret = (ret * b) % 1000000007;
    b = (b * b) % 1000000007;
    n >>= 1;
  }
  return (long long)ret;
}
long long dp[5009][5009] = {};
vector<int> fac[5009];
long long rec(long long n, long long k) {
  if (dp[n][k] != -1) return dp[n][k];
  if (k == 0) return 0;
  if (n == 1 || k == 1) return dp[n][k] = 1;
  long long ans = 0;
  int i, p = fac[n].size();
  for (i = 0; i < p; i++) {
    ans += (rec(fac[n][i], k - 1));
    if (ans >= 1000000007) ans -= 1000000007;
  }
  return dp[n][k] = ans;
}
void gen() {
  int j;
  for (int i = 2; i <= 5000; i++) {
    for (j = 1; j * j < i; j++)
      if (i % j == 0) fac[i].push_back(j), fac[i].push_back(i / j);
    if (j * j == i) fac[i].push_back(j);
  }
}
int main() {
  gen();
  memset(dp, -1, sizeof(dp));
  long long n, k;
  cin >> n >> k;
  long long ans = 0;
  for (int i = n; i >= 1; i--) {
    ans += rec(i, k);
    if (ans >= 1000000007) ans -= 1000000007;
  }
  cout << ans << endl;
  return 0;
}
