#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  long long int dp1[2000 + 1];
  long long int dp2[2000 + 1];
  cin >> n >> k;
  for (int i = 1; i <= n; ++i) dp1[i] = 1, dp2[i] = 0;
  for (int i = 1; i < k; ++i) {
    for (int j = 1; j <= n; ++j) {
      for (int z = 1; z * j <= n; ++z) {
        dp2[z * j] += dp1[j];
        dp2[z * j] %= 1000000007;
      }
    }
    for (int a = 1; a <= n; ++a) dp1[a] = dp2[a], dp2[a] = 0;
  }
  long long int ans = 0;
  for (int i = 1; i <= n; ++i) {
    ans += dp1[i];
    ans %= 1000000007;
  }
  cout << ans;
}
