#include <bits/stdc++.h>
using namespace std;
long long n;
signed main() {
  long long t = 1;
  ;
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(NULL);
  cout << fixed << setprecision(10);
  while (t-- > 0) {
    cin >> n;
    long long res = n + 1;
    long long i = 0;
    for (long long j = 1; j <= 8; j++) {
      res += max(0ll, n - j + 1);
    }
    for (long long i = 1; i <= (8); i++) {
      for (long long j = 0; j <= (4); j++) {
        res += max(0ll, n - i - j + 1);
      }
    }
    cout << res << "\n";
  };
  return 0;
}
