#include <bits/stdc++.h>
using namespace std;
const int lim = 5000, P[] = {1, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int n;
int main() {
  cin >> n;
  cout << (long long)P[min(n, 11)] + (long long)max(n - 11, 0) * 49;
  return 0;
}
