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