#include <bits/stdc++.h>
using namespace std;
uint64_t dp[2001][2001];
int main() {
  int n, k;
  cin >> n >> k;
  for (int b = 1; b <= n; ++b) dp[1][b] = 1;
  for (int l = 1; l < k; ++l) {
    for (int b = 1; b <= n; ++b) {
      for (int d = 1; d <= n / b; ++d) {
        dp[l + 1][b * d] = (dp[l + 1][b * d] + dp[l][b]) % 1000000007ULL;
      }
    }
  }
  uint64_t ans = 0;
  for (int b = 1; b <= n; ++b) {
    ans = (ans + dp[k][b]) % 1000000007ULL;
  }
  cout << ans << endl;
}
