#include <bits/stdc++.h>
using namespace std;
const int MaxN = 3e5;
const int Inf = 1 << 30;
long long a[20];
int main() {
  long long n;
  long long ans;
  a[1] = 4;
  a[2] = 10;
  a[3] = 20;
  a[4] = 35;
  a[5] = 56;
  a[6] = 83;
  a[7] = 116;
  a[8] = 155;
  a[9] = 198;
  a[10] = 244;
  a[11] = 292;
  while (~scanf("%I64d", &n)) {
    if (n <= 11)
      printf("%I64d\n", a[n]);
    else {
      ans = (n - 11LL) * 49LL + a[11];
      printf("%I64d\n", ans);
    }
  }
  return 0;
}
