#include <bits/stdc++.h>
using namespace std;
int dx[] = {-1, 0, 1, 0};
int dy[] = {0, 1, 0, -1};
long long toInt(string s) {
  stringstream ss(s);
  long long k;
  ss >> k;
  return k;
}
string toString(long long k) {
  stringstream ss;
  ss << k;
  return ss.str();
}
bool prime(long long x) {
  for (int i = 2; i * i <= x; i++) {
    if (x % i == 0) return false;
  }
  return true;
}
long long n, m, k;
long long dp[2222][2222];
int main(void) {
  cin >> n >> k;
  for (int i = (1); i <= (n); i++) dp[1][i] = 1;
  for (int l = (2); l <= (k); l++) {
    for (int i = (1); i <= (n); i++) {
      for (long long j = i; j <= n; j += i) {
        dp[l][j] += dp[l - 1][i];
        dp[l][j] %= 1000000007;
      }
    }
  }
  long long ans = 0;
  for (int i = (1); i <= (n); i++) {
    ans += dp[k][i];
    ans %= 1000000007;
  }
  cout << ans << endl;
  return 0;
}
