#include <bits/stdc++.h>
using namespace std;
long long d[555][6][6];
int main() {
  int n, i, j, k, q, w;
  scanf("%d", &n);
  for (j = 0; j <= 5; j++)
    for (q = 0; q <= 5; q++) d[0][j][q] = 0;
  d[0][0][0] = 1;
  for (i = 1; i <= n; i++) {
    for (j = 0; j <= 5; j++) {
      for (k = 0; k <= 3; k++) {
        d[i][j][k] = 0;
        for (q = 0; q <= j; q++) {
          for (w = 0; w <= k; w++) {
            d[i][j][k] += d[i - 1][j - q][k - w];
          }
        }
      }
    }
  }
  printf("%I64d\n", d[n][5][3]);
  return 0;
}
