#include <bits/stdc++.h>
using namespace std;
long long n, k, dp[2007][2007];
long long INF = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k;
  for (int i = 1; i <= n; i++) dp[1][i] = 1;
  for (int i = 2; i <= k; i++) {
    for (int j = 1; j <= n; j++) {
      for (int z = j; z <= n; z += j) {
        dp[i][j] = (dp[i][j] + dp[i - 1][z]) % INF;
      }
    }
  }
  long long ans = 0;
  for (int i = 1; i <= n; i++) ans = (ans + dp[k][i]) % INF;
  cout << ans % INF;
}
