#include <bits/stdc++.h>
using namespace std;
long long int dp[2001][2001];
signed main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, k;
  cin >> n >> k;
  memset(dp, 0, sizeof(dp));
  for (long long int i = 1; i <= n; i++) dp[k - 1][i] += 1;
  for (long long int i = k - 2; i >= 0; i--) {
    for (long long int j = 1; j <= n; j++) {
      long long int k = 1;
      while (k * j <= n) {
        dp[i][j] += (dp[i + 1][k * j]);
        k++;
      }
      dp[i][j] %= 1000000007;
    }
  }
  long long int ans = 0;
  for (long long int i = 1; i <= n; i++) {
    ans += (dp[0][i]);
    ans %= 1000000007;
  }
  cout << ans << "\n";
  return 0;
}
