#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k, modu = 1e9 + 7;
  ;
  cin >> n >> k;
  vector<vector<long long>> A(k + 1, vector<long long>(n + 1, 0));
  for (int i = 0; i <= n; i++) A[1][i] = 1;
  for (int i = 1; i < k; ++i) {
    long long sum = 0;
    for (int j = 1; j <= n; ++j) {
      for (int k = j; k <= n; k += j)
        A[i + 1][k] = (A[i + 1][k] + A[i][j]) % modu;
    }
  }
  long long ans = 0;
  for (int i = 1; i <= n; i++) ans = (ans + A[k][i]) % modu;
  cout << ans << endl;
  return 0;
}
