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