#include <bits/stdc++.h>
using namespace std;
int dp[2007][2007], n, m;
int main() {
  ios::sync_with_stdio(0);
  int ans = 0;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    dp[i][1] = 1;
    for (int j = i; j <= n; j += i) {
      for (int k = 1; k < m; k++) {
        dp[j][k + 1] += dp[i][k];
        dp[j][k + 1] %= 1000000007;
      }
    }
    ans += dp[i][m];
    ans %= 1000000007;
  }
  cout << ans << endl;
  return 0;
}
