#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long ans = 1;
  for (long long i = 1; i <= min((long long)8, n); i++) {
    ans++;
  }
  for (long long i = 1; i <= min((long long)44, n); i++) {
    if (i >= 9) break;
    ans++;
  }
  for (long long i = 1; i <= min((long long)8, n); i++) {
    for (long long j = 1; j <= min((long long)44, n); j++) {
      if (i >= 1 && j >= 5) break;
      if (j >= 9) break;
      if (i + j > n) break;
      ans++;
    }
  }
  ans += n;
  for (long long i = 1; i <= min((long long)8, n); i++) {
    ans += n - i;
  }
  for (long long i = 1; i <= min((long long)44, n); i++) {
    if (i >= 9) break;
    ans += n - i;
  }
  for (long long i = 1; i <= min((long long)8, n); i++) {
    for (long long j = 1; j <= min((long long)44, n); j++) {
      if (i >= 1 && j >= 5) break;
      if (j >= 9) break;
      if (i + j > n) break;
      ans += (n - i - j);
    }
  }
  cout << ans;
  return 0;
}
