#include <bits/stdc++.h>
using namespace std;
const int M = 1e9 + 7;
int n, m;
long long iv[1000];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> m;
  iv[1] = 1;
  for (int i = 2; i < 1000; ++i) iv[i] = M - M / i * iv[M % i] % M;
  long long ans = 1;
  for (int i = 1; i <= n + 2 * m - 1; ++i) ans = ans * i % M;
  for (int i = 1; i <= 2 * m; ++i) ans = ans * iv[i] % M;
  for (int i = 1; i <= n - 1; ++i) ans = ans * iv[i] % M;
  cout << ans;
}
