#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) {
    return a;
  }
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return ((a * b) / gcd(a, b)); }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long n, k;
  cin >> n >> k;
  long long dp[k + 10][n + 10];
  memset(dp, 0, sizeof(dp));
  for (long long i = 0; i < n + 1; i++) {
    dp[1][i] = 1;
  }
  for (long long i = 2; i < k + 1; i++) {
    for (long long j = 1; j < n + 1; j++) {
      for (long long l = j; l <= n; l += j) {
        dp[i][j] = (dp[i][j] + dp[i - 1][l]) % 1000000007;
      }
    }
  }
  long long ans = 0;
  for (long long i = 1; i < n + 1; i++) {
    ans = (ans + dp[k][i]) % 1000000007;
  }
  cout << ans;
  return 0;
}
