#include <bits/stdc++.h>
using namespace std;
int z[2001][2001];
void fun();
int main() {
  fun();
  return 0;
}
void fun() {
  int n, k;
  scanf("%d%d", &n, &k);
  for (int i = 1; i <= n; ++i) {
    z[1][i] = 1;
  }
  for (int i = 2; i <= k; ++i) {
    for (int j = 1; j <= n; ++j) {
      for (int x = j; x <= n; x += j) {
        z[i][x] = (z[i][x] + z[i - 1][j]) % 1000000007;
      }
    }
  }
  int sum = 0;
  for (int i = 1; i <= n; ++i) {
    sum = (sum + z[k][i]) % 1000000007;
  }
  cout << sum;
}
