#include <bits/stdc++.h>
int mem[2005][2005];
int main() {
  int n, k;
  int i, j, x;
  int ans = 0;
  scanf("%d%d", &n, &k);
  for (i = 1; i <= n; i++) mem[i][0] = 1;
  for (i = 0; i < k; i++) {
    for (j = 1; j <= n; j++) {
      x = j;
      while (x <= n) {
        mem[x][i + 1] = (mem[x][i + 1] + mem[j][i]) % 1000000007;
        x += j;
      }
    }
  }
  for (i = 1; i <= n; i++) ans = (ans + mem[i][k - 1]) % 1000000007;
  printf("%d", ans);
}
