#include <bits/stdc++.h>
using namespace std;
const int N = 300005;
const int inf9 = 1e9 + 9;
const long long inf18 = 1e18 + 9;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m, k, l, p;
  int nn;
  cin >> nn;
  int pr = 0;
  n = nn;
  set<long long> s;
  if (n <= 13) {
    for (int i = 0; i <= n; ++i) {
      long long ost = n - i;
      for (int j = 0; j <= ost; ++j) {
        long long ost1 = ost - j;
        for (int k = 0; k <= ost1; ++k) {
          long long ost2 = ost1 - k;
          s.insert(i + j * 5 + k * 10 + ost2 * 50);
        }
      }
    }
    cout << s.size();
  } else {
    long long ch = 341;
    long long nn = n - 12;
    ch += nn * 49;
    cout << ch << endl;
  }
}
