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