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