#include <bits/stdc++.h>
using namespace std;
bool pos[(1 << 20)];
bool used[10042][1042];
void gg(int cSum, int left) {
  if (used[cSum][left]) {
    return;
  }
  used[cSum][left] = 1;
  if (left == 0) {
    pos[cSum] = 1;
    return;
  }
  gg(cSum + 1, left - 1);
  gg(cSum + 5, left - 1);
  gg(cSum + 10, left - 1);
  gg(cSum + 50, left - 1);
}
int solve(int n) {
  gg(0, n);
  int cnt = 0;
  for (int i = 0; i <= 50 * n; i++) {
    cnt += pos[i];
    pos[i] = 0;
  }
  return cnt;
}
int main() {
  int n;
  cin >> n;
  if (n < 100) {
    cout << solve(n) << "\n";
  } else {
    cout << 4653LL + 49LL * (n - 100) << "\n";
  }
  return 0;
}
