#include <bits/stdc++.h>
using namespace std;
long long n;
int c[12] = {4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int main() {
  cin >> n;
  if (n >= 12)
    cout << (n - 11) * 49 + 292;
  else
    cout << c[n - 1];
  return 0;
}
