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