#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
int main() {
  ios_base::sync_with_stdio(false);
  cout << setprecision(12);
  cin.tie(nullptr);
  int n;
  cin >> n;
  vector<vector<ll>> pascal(n + 5, vector<ll>(6, 1));
  for (int i = 2; i < n + 5; i++)
    for (int j = 1; j < min(i, 6); j++)
      pascal[i][j] = pascal[i - 1][j - 1] + pascal[i - 1][j];
  cout << pascal[n + 4][5] * pascal[n + 2][3] << endl;
}
