#include <bits/stdc++.h>
using namespace std;
set<int> st;
int n;
long long w[4] = {1, 5, 10, 50};
bool vis[1280][105000];
void doit(int i, int s) {
  if (i == n) {
    st.insert(s);
    return;
  }
  if (vis[i][s]) return;
  vis[i][s] = 1;
  for (int j = 0; j < 4; j++) doit(i + 1, w[j] + s);
}
long long ans[12] = {0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  if (n <= 11)
    cout << ans[n] << endl;
  else
    cout << ans[11] + (n - 11) * 49LL << endl;
  ;
}
