#include <bits/stdc++.h>
using namespace std;
const long double pi = 3.14159265358979323;
const double EPS = 1e-12;
const int N = 1e6 + 5;
const int MOD = 1e9 + 7;
long long int n, m;
long long int dp[2005][2005];
long long int ad(long long int a, long long int b) {
  return ((a % MOD + b % MOD) % MOD);
}
long long int go(long long int idx, long long int ct) {
  long long int res = 0;
  if (ct == m) {
    return 1;
  }
  if (dp[idx][ct] != -1) return dp[idx][ct];
  for (int i = idx; i <= n; i += idx) {
    res = ad(res, go(i, ct + 1));
  }
  dp[idx][ct] = res;
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  memset(dp, -1, sizeof(dp));
  cin >> n >> m;
  cout << go(1, 0);
  return 0;
}
