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