#include <bits/stdc++.h>
using namespace std;
vector<int> vi;
const long long int maxn = 2 * 1e5 + 1, inf = 1e9;
long long int n, k, f;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  k = 1;
  for (int i = n + 4; i >= n; i--) k *= i;
  k /= 120;
  f = 1;
  for (int i = n + 2; i >= n; i--) f *= i;
  f /= 6;
  cout << k * f << endl;
  return 0;
}
