#include <bits/stdc++.h>
using namespace std;
ostream cnull(NULL);
template <class TH>
void _dbg(const char *sdbg, TH h) {
  cnull << sdbg << "=" << h << "\n";
}
template <class TH, class... TA>
void _dbg(const char *sdbg, TH h, TA... a) {
  while (*sdbg != ',') cnull << *sdbg++;
  cnull << "=" << h << ",";
  _dbg(sdbg + 1, a...);
}
int arr[] = {4,    10,   20,   35,   56,   83,   116,  155,  198,  244,
             292,  341,  390,  439,  488,  537,  586,  635,  684,  733,
             782,  831,  880,  929,  978,  1027, 1076, 1125, 1174, 1223,
             1272, 1321, 1370, 1419, 1468, 1517, 1566, 1615, 1664, 1713,
             1762, 1811, 1860, 1909, 1958, 2007, 2056, 2105, 2154, 2203};
int32_t main() {
  int n;
  scanf("%d", &n);
  if (n <= 50)
    printf("%d", arr[n - 1]);
  else
    printf("%lld", arr[49] + (n - 50) * 49ll);
}
