#include <bits/stdc++.h>
using namespace std;
bool br1, br2, br;
long long n, k, x, y, z, mini, maxi, w, l, ind, ini, sum, t, len, r, q, m,
    imini;
long long a[(int)1e4];
void solve() {
  cin >> n >> k;
  for (long long i = 0; i < n + 1; i++) a[i] = 1;
  for (long long i = 2; i < k + 2; i++) {
    for (long long j = 1; j < n + 1; j++) {
      for (int x = 2 * j; x <= n; x += j) a[j] = (a[j] + a[x]) % 1000000007;
    }
  }
  cout << a[1] << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  solve();
  return 0;
}
