#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
ostream& operator<<(std::ostream& os, const std::map<T1, T2>& v) {
  os << "[";
  for (typename std::map<T1, T2>::const_iterator ii = v.begin(); ii != v.end();
       ++ii)
    os << ii->first << ":" << ii->second << " ";
  return os << "]";
}
template <class Cntnr>
ostream& c_out(std::ostream& os, const Cntnr& v) {
  os << "[";
  for (typename Cntnr::const_iterator ii = v.begin(); ii != v.end(); ++ii)
    os << *ii << " ";
  os << " ]";
  return os;
}
template <typename T>
ostream& operator<<(ostream& o, const vector<T>& c) {
  return c_out(o, c);
}
template <typename T>
ostream& operator<<(ostream& o, const list<T>& c) {
  return c_out(o, c);
}
template <typename T>
ostream& operator<<(ostream& o, const set<T>& c) {
  return c_out(o, c);
}
int A[2001][2001];
const int MOD = (int)1e9 + 7;
int main() {
  int n, K;
  scanf("%d", &n);
  scanf("%d", &K);
  for (int i = (1); i < (int)(n + 1); i++) A[i][1] = 1;
  for (int i = (1); i < (int)(n + 1); i++) {
    for (int j = i; j <= n; j += i)
      for (int k = (1); k < (int)(K); k++)
        A[j][k + 1] = (A[j][k + 1] + A[i][k]) % MOD;
  }
  int ans = 0;
  for (int i = (1); i < (int)(n + 1); i++) ans = (ans + A[i][K]) % MOD;
  cout << ans << endl;
  return 0;
}
