#include <bits/stdc++.h>
using namespace std;
unsigned long long int gg[1000][1000];
unsigned long long int rec(unsigned long long int n, unsigned long long int k) {
  if (n < k) {
    return 0;
  }
  if (gg[n][k] != 0) {
    return gg[n][k];
  }
  if (n == k) return 1;
  if (k == 1) return n;
  unsigned long long int ss = rec(n - 1, k - 1) + rec(n - 1, k);
  gg[n][k] = ss;
  return ss;
}
int main() {
  unsigned long long int n, a = 0, b = 0;
  cin >> n;
  a = rec(n, 1) + 4 * rec(n, 2) + 6 * rec(n, 3) + 4 * rec(n, 4) + rec(n, 5);
  b = rec(n, 3) + 2 * rec(n, 2) + rec(n, 1);
  unsigned long long int res = a * b;
  cout << res;
  return 0;
}
