#include <bits/stdc++.h>
using namespace std;
long long int ar[2001][2001];
int main() {
  long long int i, j, k, n, l, sum = 0;
  cin >> n >> l;
  for (i = 1; i <= n; i++) ar[i][l] = 1;
  for (i = l - 1; i >= 1; i--) {
    for (j = 1; j <= n; j++) {
      sum = 0;
      for (k = 1; k * j <= n; k++) sum = (sum + ar[j * k][i + 1]) % 1000000007;
      ar[j][i] = sum;
    }
  }
  sum = 0;
  for (i = 1; i <= n; i++) sum = (sum + ar[i][1]) % 1000000007;
  cout << sum;
  return 0;
}
