#include <bits/stdc++.h>
using namespace std;
int dp[2048][2048];
const int MOD = 1000000007;
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  for (int i = 1; i <= n; i++) {
    dp[i][1] = 1;
  }
  for (int j = 1; j < k; j++) {
    for (int i = 1; i <= n; i++) {
      for (int l = 1; l * i <= n; l++) {
        dp[l * i][j + 1] = ((long long)dp[l * i][j + 1] + dp[i][j]) % MOD;
      }
    }
  }
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    ans = ((long long)ans + dp[i][k]) % MOD;
  }
  printf("%d", ans);
  return 0;
}
