#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  ll cnt = 0;
  cin >> n;
  for (int x = 0; x < 9; x++) {
    for (int v = 0; v < 9; v++) {
      if (x >= 5 && v >= 1) continue;
      cnt += max<ll>((n - x - v + 1LL), 0LL);
    }
  }
  cout << cnt << '\n';
  return 0;
}
