#include <bits/stdc++.h>
using namespace std;
long long a[20];
int main() {
  long long n;
  cin >> n;
  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;
  if (n <= 11)
    cout << a[n];
  else
    cout << a[11] + (n - 11ll) * 49ll;
  return 0;
}
