#include <bits/stdc++.h>
using namespace std;
int B[1000] = {0};
long long int sum = 0;
int main() {
  long long int n;
  cin >> n;
  if (n == 1) {
    cout << 4;
  }
  if (n == 2) {
    cout << 10;
  }
  if (n == 3) {
    cout << 20;
  }
  if (n == 4) {
    cout << 35;
  }
  if (n == 5) {
    cout << 56;
  }
  if (n == 6) {
    cout << 83;
  }
  if (n == 7) {
    cout << 116;
  }
  if (n == 8) {
    cout << 155;
  }
  if (n == 9) {
    cout << 198;
  }
  if (n == 10) {
    cout << 244;
  }
  if (n == 11) {
    cout << 292;
  }
  if (n > 11) {
    cout << 292 + (n - 11) * 49;
  }
}
