#include <bits/stdc++.h>
using namespace std;
int dp[2020][2020];
int main() {
  int n, k;
  while (~scanf("%d%d", &n, &k)) {
    memset(dp, 0, sizeof(dp));
    for (int i = 1; i <= n; ++i) dp[0][i] = 1;
    for (int i = 1; i < k; ++i) {
      for (int j = 1; j <= n; ++j) {
        for (int jj = j; jj <= n; jj += j) {
          dp[i][jj] += dp[i - 1][j];
          if (dp[i][jj] > 1000000007) dp[i][jj] -= 1000000007;
        }
      }
    }
    int ans = 0;
    for (int j = 1; j <= n; ++j) {
      ans += dp[k - 1][j];
      if (ans > 1000000007) ans -= 1000000007;
    }
    printf("%d\n", ans);
  }
  return 0;
}
