#include <bits/stdc++.h>
using namespace std;
void fastio() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  fastio();
  long long int n, k;
  cin >> n >> k;
  vector<vector<long long int> > dp(n + 1, vector<long long int>(k + 1));
  for (long long int i = 1; i < n + 1; i++) dp[i][1] = 1;
  for (long long int i = 1; i < n + 1; i++) {
    for (long long int j = 1; j < k; j++) {
      for (long long int p = i; p < n + 1; p += i) {
        dp[p][j + 1] += (dp[i][j] % 1000000007);
        dp[p][j + 1] %= 1000000007;
      }
    }
  }
  long long int ans = 0;
  for (long long int i = 1; i < n + 1; i++) ans += (dp[i][k] % 1000000007);
  cout << ans % 1000000007 << endl;
  return 0;
}
