#include <bits/stdc++.h>
using namespace std;
long long MOD = 1000000007;
string yes = "YES\n";
string no = "NO\n";
long long gcd(long long a, long long b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  long long dp[k + 1][n + 1];
  memset(dp, 0, sizeof(dp));
  for (long long i = 1; i <= n; i++) dp[1][i] = 1;
  for (long long i = 2; i <= k; i++) {
    for (long long j = 1; j <= n; j++) {
      for (long long t = j; t <= n; t += j)
        dp[i][t] = (dp[i][t] + dp[i - 1][j]) % MOD;
    }
  }
  long long ans = 0;
  for (long long i = 1; i <= n; i++) {
    ans += dp[k][i];
    ans %= MOD;
  }
  cout << ans << "\n";
}
