#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U>
inline void smin(T &a, U b) {
  if (a > b) a = b;
}
template <typename T, typename U>
inline void smax(T &a, U b) {
  if (a < b) a = b;
}
template <class T>
inline void gn(T &first) {
  char c, sg = 0;
  while (c = getchar(), (c > '9' || c < '0') && c != '-')
    ;
  for ((c == '-' ? sg = 1, c = getchar() : 0), first = 0; c >= '0' && c <= '9';
       c = getchar())
    first = (first << 1) + (first << 3) + c - '0';
  if (sg) first = -first;
}
template <class T, class T1>
inline void gn(T &first, T1 &second) {
  gn(first);
  gn(second);
}
template <class T, class T1, class T2>
inline void gn(T &first, T1 &second, T2 &z) {
  gn(first);
  gn(second);
  gn(z);
}
template <class T>
inline void print(T first) {
  if (first < 0) {
    putchar('-');
    return print(-first);
  }
  if (first < 10) {
    putchar('0' + first);
    return;
  }
  print(first / 10);
  putchar(first % 10 + '0');
}
template <class T>
inline void printsp(T first) {
  print(first);
  putchar(' ');
}
template <class T>
inline void println(T first) {
  print(first);
  putchar('\n');
}
template <class T, class U>
inline void print(T first, U second) {
  printsp(first);
  println(second);
}
template <class T, class U, class V>
inline void print(T first, U second, V z) {
  printsp(first);
  printsp(second);
  println(z);
}
int power(int a, int b, int m, int ans = 1) {
  for (; b; b >>= 1, a = 1LL * a * a % m)
    if (b & 1) ans = 1LL * ans * a % m;
  return ans;
}
int tp[250] = {
    0,    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,  2252,  2301,  2350, 2399,
    2448, 2497,  2546,  2595,  2644,  2693,  2742,  2791,  2840,  2889, 2938,
    2987, 3036,  3085,  3134,  3183,  3232,  3281,  3330,  3379,  3428, 3477,
    3526, 3575,  3624,  3673,  3722,  3771,  3820,  3869,  3918,  3967, 4016,
    4065, 4114,  4163,  4212,  4261,  4310,  4359,  4408,  4457,  4506, 4555,
    4604, 4653,  4702,  4751,  4800,  4849,  4898,  4947,  4996,  5045, 5094,
    5143, 5192,  5241,  5290,  5339,  5388,  5437,  5486,  5535,  5584, 5633,
    5682, 5731,  5780,  5829,  5878,  5927,  5976,  6025,  6074,  6123, 6172,
    6221, 6270,  6319,  6368,  6417,  6466,  6515,  6564,  6613,  6662, 6711,
    6760, 6809,  6858,  6907,  6956,  7005,  7054,  7103,  7152,  7201, 7250,
    7299, 7348,  7397,  7446,  7495,  7544,  7593,  7642,  7691,  7740, 7789,
    7838, 7887,  7936,  7985,  8034,  8083,  8132,  8181,  8230,  8279, 8328,
    8377, 8426,  8475,  8524,  8573,  8622,  8671,  8720,  8769,  8818, 8867,
    8916, 8965,  9014,  9063,  9112,  9161,  9210,  9259,  9308,  9357, 9406,
    9455, 9504,  9553,  9602,  9651,  9700,  9749,  9798,  9847,  9896, 9945,
    9994, 10043, 10092, 10141, 10190, 10239, 10288, 10337, 10386, 10435};
int main() {
  int n;
  gn(n);
  if (n < 201)
    println(tp[n]);
  else
    println(tp[200] + (long long)(n - 200) * 49);
  return 0;
}
