#include <bits/stdc++.h>
using namespace std;
int n, k, ans, f[2005][2005];
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 1; i <= n; i++) f[i][1] = 1;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= k; j++) {
      for (int q = 1; i * q <= n; q++) {
        f[i * q][j + 1] += f[i][j];
        f[i * q][j + 1] %= 1000000007;
      }
    }
  for (int i = 1; i <= n; i++) {
    ans += f[i][k];
    ans %= 1000000007;
  }
  printf("%d\n", ans);
  return 0;
}
