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