#include <bits/stdc++.h>
using namespace std;
const long long N = 2005;
long long dp[N][N];
int32_t main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  ;
  long long n, K;
  cin >> n >> K;
  long long ans = 0;
  dp[0][1] = 1;
  for (long long k = 1; k <= K; k++) {
    for (long long i = 1; i <= n; i++) {
      for (long long j = i; j <= n; j += i) {
        dp[k][j] = (dp[k][j] + dp[k - 1][i]) % (long long)(1e9 + 7);
      }
    }
  }
  for (long long i = 1; i < n + 1; i++)
    ans = (ans + dp[K][i]) % (long long)(1e9 + 7);
  cout << ans;
}
