#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long c3 = 1, c5 = 1;
  int n3 = n + 2, n5 = n + 4;
  for (int i = 1; i <= 3; i++) {
    c3 = c3 * (n3 - 3 + i) / i;
  }
  for (int i = 1; i <= 5; i++) {
    c5 = c5 * (n5 - 5 + i) / i;
  }
  cout << c3 * c5;
}
