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