#include <bits/stdc++.h>
using namespace std;
long long INF = 0x7FFFFFFFFFFFFFFF;
long long binpow(long long a, long long b) {
  long long res = 1;
  while (b > 0) {
    if (b & 1) res = res * a;
    a = a * a;
    b >>= 1;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  vector<vector<long long> > dp(k + 1, vector<long long>(n + 1, 0));
  for (long long i = 1; i < n + 1; ++i) {
    dp[1][i] = 1;
  }
  for (long long i = 1; i < k; ++i) {
    for (long long j = 1; j < n + 1; ++j) {
      for (long long m = j; m <= n; m += j) {
        dp[i + 1][m] = (dp[i + 1][m] + dp[i][j]) % 1000000007;
      }
    }
  }
  long long ans = 0;
  for (long long i = 1; i < n + 1; ++i) {
    ans = (ans + dp[k][i]) % 1000000007;
  }
  cout << ans << "\n";
}
