#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int maxn = 1e5 + 9;
long long a[30] = {0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292, 341};
set<long long> s;
int main() {
  ios::sync_with_stdio(false);
  long long n;
  while (cin >> n) {
    if (n <= 11)
      cout << a[n] << endl;
    else
      cout << (n - 11) * 49 + a[11] << endl;
  }
  return 0;
}
