#include <bits/stdc++.h>
using namespace std;
int n;
long long ans = 0;
bool bs[10][50];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  for (int i = 0; i <= 8; i++)
    for (int j = 0; j <= 49; j++) bs[i][j] = 1;
  cin >> n;
  for (int a = 0; a <= min(8, n); a++)
    for (int b = 0; b <= min(49, n); b++)
      for (int c = 0; c <= min(8, n); c++)
        for (int d = 0; d <= min(49, n); d++)
          if (a * 4 + b * 9 > c * 4 + d * 9 &&
              (a * 4 + b * 9 - c * 4 - d * 9) % 49 == 0)
            bs[a][b] = 0;
  for (int a = 0; a <= min(8, n); a++)
    for (int b = 0; b <= min(49, n); b++)
      if (bs[a][b]) ans += max(0, n - a - b + 1);
  cout << ans << '\n';
  return 0;
}
