#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, ans = 0;
  cin >> n;
  for (long long i = 0; i <= min(n, (long long)8); i++)
    for (long long j = 0; j <= min(n, (long long)8); j++)
      if ((i < 1 || j < 5) && i + j <= n) ans += n - i - j + 1;
  cout << ans << endl;
}
