#include <bits/stdc++.h>
using namespace std;
long long a[25] = {0,   4,   10,  20,  35,  56,  83,  116, 155, 198, 244,
                   292, 341, 390, 439, 488, 537, 586, 635, 684, 733};
int main() {
  long long n = 0;
  cin >> n;
  if (n <= 20)
    cout << a[n] << endl;
  else
    cout << a[20] + (n - 20) * 49LL << endl;
  return 0;
}
