#include <bits/stdc++.h>
using namespace std;
int a[500500], n, m, dp[200][10000], ans[200];
int main() {
  dp[0][0] = 1;
  for (int i = 1; i <= 100; i++) {
    for (int j = 0; j <= 5000; j++) {
      if (dp[i - 1][j]) ans[i] += 1 - dp[i][j + 1], dp[i][j + 1] = 1;
      if (dp[i - 1][j]) ans[i] += 1 - dp[i][j + 5], dp[i][j + 5] = 1;
      if (dp[i - 1][j]) ans[i] += 1 - dp[i][j + 10], dp[i][j + 10] = 1;
      if (dp[i - 1][j]) ans[i] += 1 - dp[i][j + 50], dp[i][j + 50] = 1;
    }
  }
  cin >> n;
  if (n < 100)
    cout << ans[n];
  else {
    cout << 49ll * (n - 100) + ans[100];
  }
}
