#include <bits/stdc++.h>
using namespace std;
int n, m;
int ans;
int f[3000][3000];
int main() {
  cin >> n >> m;
  for (int i = 1; i <= n; i++) f[i][1] = 1;
  for (int j = 2; j <= m; j++)
    for (int i = 1; i <= n; i++) {
      int k = i;
      while (k <= n) {
        f[k][j] = (f[k][j] + f[i][j - 1]) % 1000000007;
        k += i;
      }
    }
  int ans = 0;
  for (int i = 1; i <= n; i++) ans = (ans + f[i][m]) % 1000000007;
  cout << ans;
  return 0;
}
