#include <bits/stdc++.h>
using namespace std;
const vector<int> ans = {0,   4,   10,  20,  35,  56,  83, 116,
                         155, 198, 244, 292, 341, 390, 439};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  if (n < ans.size()) {
    cout << ans[n] << '\n';
  } else {
    int rem = n - ans.size() + 1;
    cout << ans.back() + rem * 49LL << '\n';
  }
  return 0;
}
