#include <bits/stdc++.h>
using namespace std;
long long dp[2010][2010];
const long long mod = 1e9 + 7;
int main() {
  long long n, k;
  cin >> n >> k;
  dp[0][1] = 1;
  for (long long i = 1; i <= k; i++) {
    for (long long j = 1; j <= n; j++) {
      for (long long l = j; l <= n; l += j) {
        dp[i][l] = (dp[i][l] + dp[i - 1][j]) % mod;
      }
    }
  }
  long long c = 0;
  for (long long i = 1; i <= n; i++) c = (c + dp[k][i]) % mod;
  cout << c;
}
