#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 1, 0, -1};
int dy[] = {1, 0, -1, 0};
const long double Pi = acos(-1), e = 2.718, ebs = 0.00000000001;
const int N = 1e7 + 10, mod = 1e9 + 7, SEED = 1331, B = 40;
vector<vector<long long> > c;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long n;
  cin >> n;
  long long ans = (n + 4) * (n + 3) * (n + 2) * (n + 1) * n / 120;
  ans *= (n + 2) * (n + 1) * n / 6;
  cout << ans << '\n';
  return 0;
}
