#include <bits/stdc++.h>
using namespace std;
void swapp(int &a, int &b);
double fabss(double a);
int maxx(int a, int b);
int minn(int a, int b);
int Del_bit_1(int n);
int lowbit(int n);
int abss(int a);
const double E = 2.718281828;
const double PI = acos(-1.0);
const double ESP = 1e-6;
const int inf = 0x7fffffff;
const int N = 1e6 + 6;
const int mod = 1e9 + 7;
int dp[2005][2005];
int main() {
  ios::sync_with_stdio(false);
  int n, k, i, j, o;
  cin >> n >> k;
  for (i = 1; i <= n; ++i) dp[1][i] = 1;
  for (i = 1; i <= k - 1; ++i) {
    for (j = 1; j <= n; ++j) {
      for (o = j; o <= n; o += j) {
        dp[i + 1][o] += dp[i][j];
        dp[i + 1][o] %= mod;
      }
    }
  }
  int ans = 0;
  for (i = 1; i <= n; ++i) ans += dp[k][i], ans %= mod;
  cout << ans << endl;
  return 0;
}
int maxx(int a, int b) { return a > b ? a : b; }
void swapp(int &a, int &b) {
  a ^= b;
  b ^= a;
  a ^= b;
}
int lowbit(int n) { return n & -n; }
int Del_bit_1(int n) { return n & n - 1; }
int abss(int a) { return a > 0 ? a : -a; }
double fabss(double a) { return a > 0 ? a : -a; }
int minn(int a, int b) { return a < b ? a : b; }
