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