#include <bits/stdc++.h>
using namespace std;
long long i, j, k, l, n, m, sum, ress, last;
long long a[1009] = {0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int main() {
  last = 1;
  cin >> n;
  if (n <= 11)
    cout << a[n] << endl;
  else
    cout << a[11] + (n - 11) * 49 << endl;
  return 0;
}
