#include <bits/stdc++.h>
using namespace std;
int n, k;
long long dp[2007][2007];
int main() {
  cin >> n >> k;
  for (int i = 1; i <= n; i++) dp[i][1] = 1;
  for (int i = 1; i < k; i++) {
    for (int o = 1; o <= n; o++)
      for (int k = o; k <= n; k = k + o)
        dp[k][i + 1] = (dp[k][i + 1] + dp[o][i]) % 1000000007;
  }
  long long s = 0;
  for (int i = 1; i <= n; i++) s = (s + dp[i][k]) % 1000000007;
  cout << s;
  return 0;
}
