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