#include <bits/stdc++.h>
using namespace std;
long long N;
long long ans[12]{0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cin >> N;
  cout << (N > 11 ? ans[11] + (N - 11) * 49 : ans[N]);
  return 0;
}
