#include <bits/stdc++.h>
using namespace std;
int a[2010][2010];
int main() {
  for (int i = 1; i <= 2000; i++) {
    a[1][i] = 1;
    int l = i;
    while (l <= 2000) {
      a[2][l] += a[1][i];
      l += i;
    }
  }
  for (int j = 2; j <= 2000; j++)
    for (int i = 1; i <= 2000; i++) {
      int l = i;
      while (l <= 2000) {
        a[j + 1][l] += a[j][i];
        a[j + 1][l] %= 1000000007;
        l += i;
      }
    }
  int n, k;
  scanf("%d%d", &n, &k);
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    sum += a[k][i];
    sum %= 1000000007;
  }
  printf("%d", sum);
}
