#include <bits/stdc++.h>
using namespace std;
int f[2010][2010], n, k, ans = 0;
int main() {
  memset(f, 0, sizeof(f));
  cin >> n >> k;
  for (int i = 1; i <= n; ++i) f[1][i] = 1;
  for (int i = 1; i < k; ++i)
    for (int j = 1; j <= n; ++j)
      for (int l = 1; l * j <= n; ++l) {
        f[i + 1][j * l] += f[i][j];
        f[i + 1][j * l] %= 1000000007;
      }
  for (int i = 1; i <= n; ++i) {
    ans += f[k][i];
    ans %= 1000000007;
  }
  cout << ans;
  return 0;
}
