#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<long long> r = {4,    10,   20,   35,   56,   83,   116,  155,  198,
                         244,  292,  341,  390,  439,  488,  537,  586,  635,
                         684,  733,  782,  831,  880,  929,  978,  1027, 1076,
                         1125, 1174, 1223, 1272, 1321, 1370, 1419, 1468, 1517,
                         1566, 1615, 1664, 1713, 1762, 1811, 1860, 1909, 1958,
                         2007, 2056, 2105, 2154, 2203};
  if (n - 1 < r.size())
    cout << r[n - 1];
  else {
    cout << 49ll * (n - (int)r.size()) + r.back();
  }
  return 0;
}
