#include <bits/stdc++.h>
using namespace std;
int main() {
  long double ans = 1, n;
  cin >> n;
  ans *= n * (n + 1) * (n + 2) * (n + 3) * (n + 4) / 120.0;
  ans *= n * (n + 1) * (n + 2) / 6.0;
  cout << fixed << setprecision(0) << ans << '\n';
}
