// This file is a "Hello, world!" in C++ language by GCC for wandbox. #include #include using namespace std; int main(){ int N,T = 5,G = 2,PG = 3; cin >> N; int num =0; for(int i=0; i < N; ++i){ for(int j=0; j <= i; ++j){ for(int k=0;k < N;++k){ if((i*T) + (j*G) + (k*PG) == N ){ ++num; } } } } cout << num << endl; }