#include <bits/stdc++.h>
using namespace std;
int f[2005][2005];
int n, k, res;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> n >> k;
  f[0][1] = 1;
  for (int i = 0; i < k; i++)
    for (int j = 1; j <= n; j++)
      for (int t = j; t <= n; t += j)
        f[i + 1][t] = (f[i + 1][t] + f[i][j]) % 1000000007;
  for (int i = 1; i <= n; i++) res = (res + f[k][i]) % 1000000007;
  cout << res;
  return 0;
}
