#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
const int maxn = 1050;
long long a[100];
int main() {
  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;
  long long n;
  scanf("%lld", &n);
  long long ans = (n - 11) * 49 + a[11];
  if (n <= 11)
    printf("%lld\n", a[n]);
  else
    printf("%lld\n", ans);
  return 0;
}
