#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long res;
  res = 1LL * n * (n + 1) * (n + 2) * (n + 3) * (n + 4);
  res /= 1LL * 2 * 3 * 4 * 5;
  res *= (1LL * n * (n + 1) * (n + 2)) / (2 * 3);
  cout << res;
}
