#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a;
  b = (a + 4) * (a + 3) / 2 * (a + 2) / 3 * (a + 1) / 4 * a / 5;
  c = (a + 2) * (a + 1) / 2 * a / 3;
  cout << b * c << endl;
  return 0;
}
