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