#include <bits/stdc++.h>
using namespace std;
long long ans;
int made[50 * 10 + 100];
int main() {
  long long n;
  cin >> n;
  if (n <= 10) {
    for (int i = 0; i <= n; i++)
      for (int v = 0; v <= n; v++)
        for (int x = 0; x <= n; x++)
          for (int l = 0; l <= n; l++)
            if (i + v + x + l == n) {
              int val = i + v * 5 + x * 10 + l * 50;
              if (!made[val]) ans++;
              made[val] = 1;
            }
    return cout << ans, 0;
  }
  n -= 10;
  long long a = 292, d = 49;
  cout << a + (n - 1) * d;
  return 0;
}
