#include <bits/stdc++.h>
using namespace std;
long long int dp[2001][2001];
int main() {
  ios_base::sync_with_stdio(0);
  long long int n, k;
  cin >> n >> k;
  dp[0][1] = 1;
  for (long long int i = 1; i <= k; i++) {
    for (long long int j = 1; j <= n; j++) {
      for (long long int x = j; x <= n; x += j) {
        dp[i][x] = (dp[i][x] + dp[i - 1][j]) % 1000000007;
      }
    }
  }
  long long int res = 0;
  for (long long int i = 1; i <= n; i++) res += dp[k][i];
  cout << res % 1000000007 << endl;
}
