#include <bits/stdc++.h>
using namespace std;
long long int nCr(long long int n, long long int r) {
  if (n < r) return 0;
  if (r == n || r == 0) return 1;
  return (nCr(n - 1, r - 1) * n) / r;
}
int main() {
  long long int n;
  cin >> n;
  long long int ans = nCr(n + 4, 5) * nCr(n + 2, 3);
  return cout << ans << endl, 0;
}
