#include <bits/stdc++.h>
using namespace std;
int dp[2001][2001];
int n, k;
int func(int i, int val) {
  int m = 1000000007;
  if (i == k) return 1;
  if (dp[i][val] != -1) return dp[i][val];
  dp[i][val] = 0;
  for (int l = 1; l * val <= n; l++) {
    dp[i][val] = (dp[i][val] + (func(i + 1, val * l)) % m) % m;
  }
  return dp[i][val];
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> k;
  memset(dp, -1, sizeof(dp));
  cout << func(0, 1) << endl;
  return 0;
}
