#include <bits/stdc++.h>
using namespace std;
long long LLMAX = 9223372036854775807LL;
const int MOD = 1000000007;
const int maxn = 100000 + 10;
long long dp[2222][2222];
int main() {
  int n, k;
  scanf("%d %d", &(n), &(k));
  for (int i = 1; i <= n; ++i) dp[1][i] = 1;
  for (int i = 1; i < k; ++i)
    for (int j = 1; j <= n; ++j)
      for (int tt = j; tt <= n; tt += j) {
        dp[i + 1][tt] += dp[i][j];
        if (dp[i + 1][tt] > MOD) dp[i + 1][tt] -= MOD;
      }
  long long ans = 0;
  for (int i = 1; i <= n; ++i) {
    ans += dp[k][i];
    if (ans > MOD) ans -= MOD;
  }
  printf("%I64d\n", ans);
}
