#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int64_t n;
  cin >> n;
  int64_t feature3 = 1;
  for (int64_t i = n; i < n + 3; ++i) {
    feature3 *= i;
  }
  feature3 /= 6;
  int64_t bug5 = feature3 * (n + 3) * (n + 4);
  bug5 /= 20;
  int64_t result = bug5 * feature3;
  cout << result << '\n';
}
