#include <bits/stdc++.h>
using namespace std;
const int maxN = 1e5 + 7000;
unsigned long long c(int n, int r) {
  unsigned long long ans = 1;
  for (int i = n; i > n - r; i--) ans *= 1LL * i;
  for (int i = 1; i <= r; i++) ans /= i;
  return ans;
}
void solve(int n) { cout << c(n + 2, 3) * c(n + 4, 5) << endl; }
int main() {
  int n;
  cin >> n;
  solve(n);
}
