#include <bits/stdc++.h>
using namespace std;
long long arr[2005][2005] = {0};
int main() {
  ios::sync_with_stdio(false);
  int n, k;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    arr[i][1] = 1;
  }
  for (int i = 1; i <= k - 1; i++) {
    for (int j = 1; j <= n; j++) {
      for (int m = j; m <= n; m += j) {
        arr[m][i + 1] = (arr[m][i + 1] + arr[j][i]) % 1000000007;
      }
    }
  }
  long long ans = 0;
  for (int i = 1; i <= n; i++) {
    ans = (ans + arr[i][k]) % 1000000007;
  }
  cout << ans << endl;
  return 0;
}
