#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline bool cmax(T& x, T y) {
  return y > x ? x = y, true : false;
}
template <typename T>
inline bool cmin(T& x, T y) {
  return y < x ? x = y, true : false;
}
template <typename T>
inline T dmax(T x, T y) {
  return x > y ? x : y;
}
template <typename T>
inline T dmin(T x, T y) {
  return x < y ? x : y;
}
long long ans[] = {0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292, 341, 390};
int main() {
  int n;
  scanf("%d", &n);
  if (n <= 13)
    printf("%lld\n", ans[n]);
  else
    printf("%lld\n", (n - 13) * 49LL + ans[13]);
  return 0;
}
