#include <bits/stdc++.h>
using namespace std;
int64_t n;
int64_t b() {
  int64_t temp = (n - 1) + 5;
  return (temp * (temp - 1) * (temp - 2) * (temp - 3) * (temp - 4)) / 120;
}
int64_t f() {
  int64_t temp = (n - 1) + 3;
  return (temp * (temp - 1) * (temp - 2)) / 6;
}
signed main() {
  cin >> n;
  cout << b() * f();
}
