#include <bits/stdc++.h>
using namespace std;
void debug(vector<long long int> v, int a) {
  cout << "DEBUG " << a << endl;
  for (auto k = v.begin(); k != v.end(); k++) cout << *k << " ";
  cout << endl;
}
long long int dp[2002][2002];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t, n, m, temp, temp1, temp2, temp3, k, a, b, c, d, count, x, y;
  long long int mod = 1e9 + 7;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    dp[1][i] = 1;
  }
  for (int i = 2; i <= k; i++) {
    for (int j = 1; j <= n; j++) {
      long long int sq = sqrt(j);
      for (int m = 1; m <= sq; m++) {
        if (j % m == 0) {
          dp[i][j] = ((dp[i][j] % mod) + (dp[i - 1][m] % mod)) % mod;
          if ((j / m) != m) {
            dp[i][j] = ((dp[i][j] % mod) + (dp[i - 1][j / m] % mod)) % mod;
          }
        }
      }
    }
  }
  long long int sum = 0;
  for (int i = 1; i <= n; i++) {
    sum = ((sum % mod) + (dp[k][i] % mod)) % mod;
  }
  cout << sum;
}
