#include"bits/stdc++.h" using namespace std; #define REP(k,m,n) for(int (k)=(m);(k)<(n);(k)++) #define rep(i,n) REP((i),0,(n)) using ll = long long; using pll = pair; using tp3 = tuple; constexpr int INF = 1 << 28; constexpr ll INFL = 1ll << 60; constexpr int dh[4] = { 0,1,0,-1 }; constexpr int dw[4] = { -1,0,1,0 }; bool isin(const int H, const int W, const int h, const int w) { return 0 <= h && h < H && 0 <= w && w < W; } // ============ template finished ============ int main() { int N; cin >> N; int res = 0; rep(try_num, 21)rep(conv, try_num + 1)rep(penalty, 34) { int point = try_num * 5 + conv * 2 + penalty * 3; if (point == N)res++; } cout << res << endl; return 0; }