#include <bits/stdc++.h>
using namespace std;
const long long INF = 1ull << 60;
int coin[4];
void get(map<long long, long long>& my, int step) {
  if (step == 0) return;
  map<long long, long long>::iterator it = my.begin();
  vector<long long> keys;
  for (; it != my.end(); ++it) {
    keys.push_back(it->first);
  }
  my.clear();
  for (int i = 0; i < keys.size(); ++i) {
    long long tmp = keys[i];
    for (int i = 0; i < 4; ++i) {
      long long key = tmp + coin[i];
      my[key]++;
    }
  }
  get(my, step - 1);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int tmp = 1;
  coin[0] = 1, coin[1] = 5, coin[2] = 10, coin[3] = 50;
  map<long long, long long> sol;
  for (int i = 1; i <= 11; ++i) {
    map<long long, long long> my;
    my[0] = 1;
    get(my, i);
    sol[i] = my.size();
  }
  long long n;
  cin >> n;
  if (n <= 11) {
    cout << sol[n] << endl;
  } else {
    long long add = (n - 11) * 49;
    cout << sol[11] + add << endl;
  }
  return 0;
}
