#include <bits/stdc++.h>
int const MOD = 1e9 + 7;
int const MAX = 2005;
int dp[MAX][MAX];
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  for (int i = 1; i <= MAX; i++) dp[1][i] = 1;
  for (int i = 1; i <= k; i++)
    for (int j = 1; j <= n; j++)
      for (int l = j; l <= n; l += j)
        dp[i][l] = (dp[i][l] + dp[i - 1][j]) % MOD;
  int ans = 0;
  for (int i = 1; i <= n; i++) ans = (ans % MOD + dp[k][i] % MOD) % MOD;
  printf("%d\n", ans);
}
