int N; { rd(N); int ans = 0; REP(i, N) { REP(j, i+1) { REP(k, N) { ans += i*5 +j*2 + k*3 == N; } } } wt(N == 0 ? 1 : ans); }