#include <bits/stdc++.h>
using namespace std;
long long a[780][780];
int main() {
  for (int i = 0; i <= 777; i++) a[i][0] = 1;
  for (int i = 1; i <= 777; i++) {
    for (int j = 1; j <= 7; j++) a[i][j] = a[i - 1][j - 1] + a[i - 1][j];
  }
  int n;
  cin >> n;
  cout << (long long)a[n + 4][5] * a[n + 2][3] << endl;
  return 0;
}
