#include <bits/stdc++.h>
using namespace std;
int dx[4] = {-1, -1, 1, 1};
int dy[4] = {-1, 1, -1, 1};
int ddx[8] = {1, 1, -1, -1, 2, 2, -2, -2};
int ddy[8] = {-2, 2, 2, -2, 1, -1, 1, -1};
bool cmp(pair<int, int> a, pair<int, int> b) {
  if (a.first == b.first) return a.second < b.second;
  return a.first < b.first;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  unsigned long long int n;
  cin >> n;
  unsigned long long int x = n * (n + 1) * (n + 2);
  x /= 6;
  unsigned long long int y = (n + 4) * (n + 3);
  y /= 2;
  y = y * (n + 2) * (n + 1);
  y /= 3;
  y = y * n;
  y /= 20;
  cout << x * y << endl;
  return 0;
}
