#include <bits/stdc++.h>
using namespace std;
int dp[2010][2010];
int main() {
  ios::sync_with_stdio(false);
  int n, k;
  while (cin >> n >> k) {
    for (int i = 1; i <= k; i++) {
      for (int j = 1; j <= n; j++) {
        if (i == 1)
          dp[1][j] = 1;
        else {
          int d = n / j;
          for (int l = 1; l <= d; l++) {
            dp[i][l * j] += dp[i - 1][j];
            if (dp[i][l * j] >= 1000000007) dp[i][l * j] -= 1000000007;
          }
        }
      }
    }
    int sum = 0;
    for (int i = 1; i <= n; i++) {
      sum += dp[k][i];
      if (sum >= 1000000007) sum -= 1000000007;
    }
    cout << sum << endl;
  }
  return 0;
}
