#include <bits/stdc++.h>
using namespace std;
long long int dp[2005][2005];
int main() {
  int n, i, k1, j, k;
  cin >> n >> k1;
  long long int ans = 0;
  dp[0][1] = 1;
  for (i = 1; i <= k1; i++) {
    for (j = 1; j <= n; j++) {
      for (k = j; k <= n; k += j) {
        dp[i][k] += dp[i - 1][j];
        dp[i][k] %= 1000000007;
      }
    }
  }
  for (j = 1; j <= n; j++) {
    ans += dp[k1][j];
    ans %= 1000000007;
  }
  cout << ans << endl;
}
