#include <bits/stdc++.h>
using namespace std;
long long MINI = -1000000000000000000;
long long MAXI = 1000000000000000000;
long long dp[2005][2005];
vector<vector<long long>> divs;
long long n, k;
void prepare() {
  long long j;
  for (long long i = 1; i <= n; i++) {
    vector<long long> v;
    for (j = 1; j * j <= i; j++) {
      if (i % j == 0) {
        if (i / j == j) {
          v.push_back(j);
        } else {
          v.push_back(j);
          v.push_back(i / j);
        }
      }
    }
    divs.push_back(v);
  }
}
int main() {
  cin >> n >> k;
  prepare();
  for (int i = 0; i <= n; i++) {
    dp[1][i] = 1;
  }
  for (int i = 2; i <= k; i++) {
    for (int j = 1; j <= n; j++) {
      for (int k = 0; k < divs[j - 1].size(); k++) {
        dp[i][j] += dp[i - 1][divs[j - 1][k]];
        dp[i][j] %= 1000000007;
      }
    }
  }
  long long sum = 0;
  for (int i = 1; i <= n; i++) {
    sum += dp[k][i];
    sum %= 1000000007;
  }
  cout << sum;
}
