#include <bits/stdc++.h>
int d[2001][2001];
int main() {
  int n, k;
  int M = 1000000007, suma = 0;
  std::cin >> n >> k;
  for (int i = 0; i <= n; i++) d[1][i] = 1;
  for (int i = 1; i < k; i++)
    for (int j = 1; j <= n; j++)
      for (int h = 1; h <= n / j; h++)
        d[i + 1][j * h] = (d[i][j] + d[i + 1][j * h]) % M;
  for (int i = 1; i <= n; i++) suma = (suma + d[k][i]) % M;
  std::cout << suma;
  return 0;
}
