#include <bits/stdc++.h>
#pragma GCC optimize "03"
using namespace std;
const long long int N = 1e5 + 5;
const long long int mod = 1e9 + 7;
map<long long int, long long int> m;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int nn;
  cin >> nn;
  long long int n = min(12LL, nn);
  for (long long int i = 0; i <= n; i++) {
    for (long long int j = 0; j <= n - i; j++) {
      for (long long int k = 0; k <= n - i - j; k++) {
        long long int l = n - i - j - k;
        long long int x = i + 5 * j + 10 * k + 50 * l;
        m[x]++;
      }
    }
  }
  cout << m.size() + max(0LL, nn - 12) * 49;
  return 0;
}
