#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long cs = 1, t = 15, ar[100], n;
  while (t--) {
    long long ans = 0;
    n = cs;
    map<long long, long long> mp;
    for (long long i = 0; i <= n; i++) {
      for (long long j = 0; j <= n; j++) {
        for (long long k = 0; k <= n; k++) {
          for (long long l = 0; l <= n; l++) {
            if (i + j + k + l == n) {
              long long val = 1 * i + 5 * j + 10 * k + 50 * l;
              if (mp[val] == 0) {
                mp[val]++;
                ans++;
                ar[n] = ans;
              }
            }
          }
        }
      }
    }
    cs++;
  }
  cin >> n;
  if (n <= 14)
    cout << ar[n] << endl;
  else {
    long long an = ar[14] + ((n - 14) * 49);
    cout << an << endl;
  }
  return 0;
}
