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