#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int dp[2001][2001];
int main() {
  int n, m;
  int ans = 0;
  dp[0][1] = 1;
  cin >> n >> m;
  for (int i = 1; i <= m; i++) {
    for (int j = 1; j <= n; j++) {
      for (int k = j; k <= n; k += j) {
        dp[i][k] += dp[i - 1][j];
        dp[i][k] %= mod;
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    ans += dp[m][i];
    ans %= mod;
  }
  cout << ans;
}
