#include <bits/stdc++.h>
using namespace std;
const long long p = 1e9 + 7;
const long long N = 3e5 + 10;
const long long inf = 1e17 + 10;
long long __gcd(long long a, long long b) { return b ? __gcd(b, a % b) : a; }
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  unordered_map<long long, long long> mp;
  long long c = 0;
  for (long long i = 0; i < 9; i++)
    for (long long j = 0; j < 9; j++) {
      if (i >= 1 && j >= 5) continue;
      c += max(0LL, n - i - j + 1);
    }
  cout << c << endl;
}
