#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  while (~scanf("%I64d", &n)) {
    long long a = (n + 2) * (n + 1) / 2 * n / 3;
    long long b = (n + 4) * (n + 3) / 2 * (n + 2) / 3 * (n + 1) / 4 * n / 5;
    printf("%I64d\n", a * b);
  }
  return 0;
}
