#include <bits/stdc++.h>
using namespace std;
const int M = 1e9 + 7;
const int N = 2005;
int dp[N][N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) dp[i][1] = 1;
  for (int i = 1; i < k; i++) {
    for (int j = 1; j <= n; j++)
      for (int k = j; k <= n; k += j)
        dp[k][i + 1] = (dp[k][i + 1] + dp[j][i]) % M;
  }
  int ans = 0;
  for (int i = 1; i <= n; i++) ans = (ans + dp[i][k]) % M;
  cout << ans << endl;
}
