#include <bits/stdc++.h>
using namespace std;
int n;
long long int sol[15], ans;
int main() {
  sol[1] = 4;
  sol[2] = 10;
  sol[3] = 20;
  sol[4] = 35;
  sol[5] = 56;
  sol[6] = 83;
  sol[7] = 116;
  sol[8] = 155;
  sol[9] = 198;
  sol[10] = 244;
  sol[11] = 292;
  sol[12] = 341;
  sol[13] = 390;
  cin >> n;
  if (n <= 13)
    ans = sol[n];
  else
    ans = sol[13] + 49LL * (n - 13);
  cout << ans;
  return 0;
}
