#include <bits/stdc++.h>
long long gg = 0, a[20] = {0,   4,   10,  20,  35,  56,  83,  116,
                           155, 198, 244, 292, 341, 390, 439, 488};
int main() {
  long long n;
  std::cin >> n;
  if (n <= 15)
    gg = a[n];
  else
    gg = n * 49 - 247;
  std::cout << gg << std::endl;
}
