#include <bits/stdc++.h>
using namespace std;
template <typename Tp>
inline void read(Tp &x) {
  static char c;
  static bool neg;
  x = 0, c = getchar(), neg = false;
  for (; !isdigit(c); c = getchar()) {
    if (c == '-') {
      neg = true;
    }
  }
  for (; isdigit(c); c = getchar()) {
    x = x * 10 + c - '0';
  }
  if (neg) {
    x = -x;
  }
}
const int a[] = {1, 5, 10, 50};
int n;
inline void brute_force(int n) {
  unordered_set<int> ust;
  for (int i = 0; i <= n; ++i) {
    for (int j = 0; j <= n - i; ++j) {
      for (int k = 0; k <= n - i - j; ++k) {
        ust.emplace(a[0] * i + a[1] * j + a[2] * k + a[3] * (n - i - j - k));
      }
    }
  }
  printf("%lu\n", ust.size());
}
int main() {
  read(n);
  if (n < 12) {
    brute_force(n);
  } else {
    printf("%lld\n", 292LL + ((long long)n - 11LL) * 49LL);
  }
}
