#include <bits/stdc++.h>
using namespace std;
int x[2014], n, k, ans = 0;
vector<int> a[2014];
int main() {
  cin >> n >> k;
  if (k == 1) {
    cout << n;
    return 0;
  }
  for (int i = 1; i <= n; i++) {
    x[i] = 1;
    for (int j = i * 2; j <= n; j += i) {
      a[j].push_back(i);
    }
  }
  for (int i = 2; i <= k; i++) {
    for (int j = 2; j <= n; j++) {
      for (vector<int>::iterator it = a[j].begin(); it != a[j].end(); ++it) {
        x[(*it)] = (x[(*it)] % 1000000007) + (x[j] % 1000000007);
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    ans = (ans % 1000000007) + (x[i] % 1000000007);
  }
  cout << ans;
}
