#include <bits/stdc++.h>
using namespace std;
bitset<1000000> f[105];
int n;
int main() {
  ios::sync_with_stdio(false);
  int i;
  cin >> n;
  f[0][0] = 1;
  for (i = 1; i <= 100; i++)
    f[i] =
        (f[i - 1] << 1) | (f[i - 1] << 5) | (f[i - 1] << 10) | (f[i - 1] << 50);
  if (n <= 90)
    cout << f[n].count();
  else
    cout << n * 49ll - 247;
  return 0;
}
