#include <bits/stdc++.h>
using namespace std;
const long long inf = 0x3f3f3f3f;
const double eps = 1e-6;
const long long mod = 1000000007;
long long n;
bool dp[505][505 * 50];
long long res[505];
signed main() {
  dp[0][0] = true;
  for (long long i = 1; i <= 500; i++)
    for (long long j = 1; j <= 500 * 50; j++)
      if (dp[i - 1][j - 1] || (j >= 5 && dp[i - 1][j - 5]) ||
          (j >= 10 && dp[i - 1][j - 10]) || (j >= 50 && dp[i - 1][j - 50]))
        dp[i][j] = true;
  long long lmt = 1000;
  for (long long i = 1; i <= 500; i++) {
    long long ans = 0;
    for (long long j = 1; j <= i * 50; j++) {
      if (dp[i][j]) ans++;
    }
    res[i] = ans;
  }
  cin >> n;
  cout << (n <= 500 ? res[n] : res[500] + (n - 500) * 49);
  return 0;
}
