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