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