#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1e18;
inline long long int in() {
  long long int p = 0;
  register char ch = 0;
  while (ch < '0' or ch > '9') {
    ch = getchar();
  }
  while (ch >= '0' and ch <= '9') {
    p = (p << 1) + (p << 3) + ch - '0';
    ch = getchar();
  }
  return p;
}
long long int n, k;
long long int dp[2005][2005];
long long int rec(long long int st, long long int rem) {
  if (rem == 0) return 1;
  if (dp[st][rem] != -1) return dp[st][rem];
  long long int a = 1, b = st, res = 0;
  for (long long int i = b; b <= n;) {
    res += ((rec(b, rem - 1)) % 1000000007);
    a++;
    b = st * (a);
  }
  return dp[st][rem] = (res) % 1000000007;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n >> k;
  memset(dp, -1, sizeof(dp));
  cout << rec(1, k) << endl;
  return 0;
}
