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