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