#include <bits/stdc++.h>
using namespace std;
template <typename X>
inline X abs(const X& a) {
  return a < 0 ? -a : a;
}
template <typename X>
inline X sqr(const X& a) {
  return a * a;
}
long long combine(long long n, int k) {
  long long ans = 1;
  for (int i = 0; i < k; i++) ans = (ans * (n - i)) / (i + 1);
  return ans;
}
int main() {
  unsigned long long n;
  cin >> n;
  long long ans = combine(n + 4, 5) * combine(n + 2, 3);
  cout << ans << endl;
  return 0;
}
