#include int main(void) { int t, T = 5, g, G = 2, pg, PG = 3; int n, N; int a[101] = {0}; scanf("%d", &N); for(pg = 0;pg <= N / PG;pg++){ for(t = 0;t <= N / T;t++){ for(g = 0;g <= t;g++){ n = t * T + g * G + pg * PG; /*printf("n=%d\n",n);*/ if(n <= N){ a[n]++; } } } } printf("%d\n", a[N]); return 0; }