#include <bits/stdc++.h>
using namespace std;
const int maxn = 1 << 18;
int f[55];
signed main(void) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  f[1] = 4;
  vector<int> a = {1, 5, 10, 50}, b;
  for (int i = 2; i <= 50; ++i) {
    for (int v : a) {
      b.emplace_back(v + 1);
      b.emplace_back(v + 5);
      b.emplace_back(v + 10);
      b.emplace_back(v + 50);
    }
    sort(b.begin(), b.end());
    b.erase(unique(b.begin(), b.end()), b.end());
    f[i] = b.size();
    swap(a, b);
    b.clear();
  }
  int n;
  cin >> n;
  if (n <= 50)
    cout << f[n];
  else
    cout << 49ll * (n - 50) + f[50];
}
