#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  for (T e : v) {
    os << e << ' ';
  }
  return os;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ll n;
  cin >> n;
  bool good[50][50];
  for (int i = 0; i < 50; ++i) {
    for (int j = 0; j < 50; ++j) {
      good[i][j] = true;
    }
  }
  auto val = [](const ll n4, const ll n9) { return 4 * n4 + 9 * n9; };
  for (ll x = 0; x <= min(8LL, n); ++x) {
    for (ll y = 0; y <= min(49LL, n); ++y) {
      for (ll x1 = 0; x1 <= min(8LL, n); ++x1) {
        for (ll y1 = 0; y1 <= min(49LL, n); ++y1) {
          if (val(x1, y1) < val(x, y) &&
              (val(x, y) % 49) == (val(x1, y1) % 49)) {
            good[x][y] = false;
          }
        }
      }
    }
  }
  ll cx = 0;
  for (int i = 0; i <= min(8LL, n); ++i) {
    for (int j = 0; i + j <= n && j <= min(49LL, n); ++j) {
      if (good[i][j]) {
        cx += n - i - j + 1;
      }
    }
  }
  cout << cx << '\n';
  return 0;
}
