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