#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e15;
const long double EPS = 1e-9;
const long long MOD = 1e9 + 7;
const long long P = 2017;
vector<vector<long long>> h;
vector<long long> p;
long long get_hash(long long i, long long l, long long r) {
  if (!l) return h[i][r];
  return h[i][r] - h[i][l - 1] * p[r - l + 1];
}
signed main() {
  long long n, k;
  cin >> n >> k;
  vector<vector<long long>> dp(k + 1, vector<long long>(n + 1));
  for (long long i = 1; i <= n; i++) {
    dp[1][i] = 1;
  }
  for (long long i = 2; i <= k; i++) {
    for (long long j = 1; j <= n; j++) {
      for (long long l = j; l <= n; l += j) {
        dp[i][l] += dp[i - 1][j] % MOD;
        dp[i][l] %= MOD;
      }
    }
  }
  long long ans = 0;
  for (long long i = 1; i <= n; i++) {
    ans += dp[k][i];
    ans %= MOD;
  }
  cout << ans;
}
