#include <bits/stdc++.h>
using namespace std;
long long a[18], n;
int main() {
  a[1] = 4, a[2] = 10, a[3] = 20, a[4] = 35, a[5] = 56, a[6] = 83, a[7] = 116,
  a[8] = 155, a[9] = 198, a[10] = 244, a[11] = 292, a[12] = 341, a[13] = 390,
  a[14] = 439, a[15] = 488;
  cin >> n;
  if (n <= 15)
    cout << a[n] << endl;
  else
    cout << a[15] + (n - 15) * 49;
  return 0;
}
