#include <bits/stdc++.h>
using namespace std;
long long dp[2005][2005];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, k, s = 0;
  cin >> n >> k;
  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];
        dp[i][l] %= 1000000007;
      }
    }
  }
  for (long long i = 1; i <= n; i++) s += dp[k][i];
  cout << s % 1000000007;
}
