#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long double n;
  cin >> n;
  cout << (long long)((n + 2) * (n + 1) * (n) * (n + 4) * (n + 3) * (n + 2) *
                      (n + 1) * (n) / 720);
  return 0;
}
