#include <bits/stdc++.h>
using namespace std;
long long dp[2200][2200];
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k;
  cin >> n >> k;
  dp[0][1] = 1;
  for (long long i = 0; i < k; i++) {
    for (long long j = 1; j <= n; j++) {
      for (long long f = j; f <= n; f += j) {
        dp[i + 1][f] += (dp[i][j] % 1000000007);
        dp[i + 1][f] %= 1000000007;
      }
    }
  }
  long long ans = 0;
  for (long long i = 1; i <= n; i++) {
    ans += dp[k][i];
    ans %= 1000000007;
  }
  cout << ans;
}
