#include <bits/stdc++.h>
using namespace std;
long long int n, k, i, a[2002][2002], j, ans = 0, p;
int main() {
  cin >> k >> n;
  for (i = 1; i <= k; i++) {
    a[1][i] = 1;
  }
  for (i = 1; i < n; i++) {
    for (j = 1; j <= k; j++) {
      for (p = 1; p * j <= k; p++)
        a[i + 1][p * j] = (a[i + 1][p * j] + a[i][j]) % 1000000007;
      ;
    }
  }
  for (i = 1; i <= k; i++) ans = (ans + a[n][i]) % 1000000007;
  ;
  cout << ans << endl;
  return 0;
}
