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