#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int dp[2010][2010];
int main() {
  int n, k;
  cin >> n >> k;
  for (int i = (1); i <= (int)(2000); i++) {
    dp[1][i] = 1;
  }
  for (int l = 1; l <= (k - 1); l++) {
    for (int first = 1; first <= n; first++) {
      for (int i = 1; i * first <= n; i++) {
        dp[l + 1][i * first] += dp[l][first];
        dp[l + 1][i * first] -= dp[l + 1][i * first] / MOD * MOD;
      }
    }
  }
  long long res = 0;
  for (int first = 1; first <= n; first++) {
    res += dp[k][first];
    res -= res / MOD * MOD;
  }
  cout << res << "\n";
}
