#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int a, b, c, d, e, f = 998244353, g, h, i, j, k, l, m, n, o, p = 0,
                               q = 0, r, t, u, w, x = 0, y, z, temp = 0, t1, t2,
                               sum = 0, mi = 0, mx = 0, ans = 0, cnt;
  q = 1;
  while (q--) {
    cin >> n >> k;
    vector<vector<long long int> > v(n + 1, vector<long long int>(k + 1, 0));
    for (i = 0; i < n + 1; i++) v[i][1] = 1;
    for (i = 2; i < k + 1; i++) {
      for (j = 1; j < n + 1; j++) {
        for (l = j; l <= n; l += j) {
          v[l][i] = (v[l][i] + v[j][i - 1]) % int(1e9 + 7);
        }
      }
    }
    for (i = 1; i < n + 1; i++) sum = (sum + v[i][k]) % int(1e9 + 7);
    cout << sum;
  }
}
