#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline T getnum() {
  T num = 0;
  char c;
  do {
    c = getchar();
  } while (c != EOF && c == ' ' && c == '\n' && c == '\t');
  int sign = (c == '-' ? -1 : 1);
  if (c != '-') num += (c - '0');
  while ((c = getchar()) != EOF && c != '\n' && c != '\t' && c != ' ') {
    num *= 10;
    num += (c - '0');
  }
  num *= sign;
  return num;
}
inline string getstr() {
  string str;
  char k;
  while ((k = getchar()) == ' ' || k == '\n') {
    k = getchar();
    if (k == ' ' || k == '\n')
      continue;
    else
      break;
  }
  while ((k = getchar()) != EOF && k != '\n' && k != '\t' && k != '\v' &&
         k != '\0' && k != ' ')
    str.push_back(k);
  return str;
}
long long dp[2005][2005], ans[2005];
int main() {
  int n, k;
  scanf("%d%d", &n, &k);
  memset(dp, 0, sizeof(dp));
  for (int i = int(1), _b = int(k); i <= _b; i++) {
    for (int j = int(1), _b = int(n); j <= _b; j++) {
      if (i == 1) dp[i][j] = 1;
      ans[i] = (ans[i] + dp[i][j]) % 1000000007;
      int h = j;
      while (h <= n) {
        dp[i + 1][h] = (dp[i + 1][h] + dp[i][j]) % 1000000007;
        h += j;
      }
    }
  }
  printf("%I64d\n", ans[k]);
  return 0;
}
