#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long INF = 0x7FFFFFFFFFFFFFFF / 2;
long long n, k;
long long dp[2001][2001] = {0};
vector<int> factors[2001];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    for (int z = 1; z <= (int)sqrt(i); z++) {
      if (i % z == 0) {
        int f1 = z;
        int f2 = i / z;
        factors[i].push_back(f1);
        if (f1 != f2) factors[i].push_back(f2);
      }
    }
    for (int j = 1; j <= k; j++) {
      if (j == 1 || i == 1) dp[i][j] = 1;
    }
  }
  for (int i = 2; i <= n; i++) {
    for (int j = 2; j <= k; j++) {
      for (auto lul : factors[i]) {
        dp[i][j] = (dp[i][j] + dp[lul][j - 1]) % mod;
      }
    }
  }
  long long ans = 0;
  for (int i = n; i >= 1; i--) {
    ans = (ans + dp[i][k]) % mod;
  }
  cout << ans;
  return 0;
}
