#include <bits/stdc++.h>
using namespace std;
void swapp(long long &a, long long &b);
double fabss(double a);
long long maxx(long long a, long long b);
long long minn(long long a, long long b);
long long Del_bit_1(long long n);
long long lowbit(long long n);
long long abss(long long a);
const double E = 2.718281828;
const double PI = acos(-1.0);
const long long inf = (1 << 29);
const double ESP = 1e-6;
const long long mod = (long long)1e9 + 7;
const long long N = (long long)1e6 + 6;
long long ans[25] = {4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int main() {
  long long n, sum;
  scanf("%I64d", &n);
  if (n > 11)
    sum = ans[10] + (n - 11) * 49;
  else
    sum = ans[n - 1];
  printf("%I64d\n", sum);
  return 0;
}
long long maxx(long long a, long long b);
void swapp(long long &a, long long &b) { a ^= b ^= a ^= b; }
long long lowbit(long long n) { return n & (-n); }
long long Del_bit_1(long long n) { return n & (n - 1); }
long long abss(long long a) { return a > 0 ? a : -a; }
double fabss(double a) { return a > 0 ? a : -a; }
long long minn(long long a, long long b) { return a < b ? a : b; }
long long maxx(long long a, long long b) { return a > b ? a : b; }
