#include using namespace std; int main() { int N; cin >> N; int ans = 0; for( int t = 0; t <= N; t++ ) { for( int g = 0; g <= t; g++ ) { for( int pg = 0; pg * 3 <= N; pg++ ) { int s = t * 5 + g * 2 + pg * 3; if( s > N ) break; if( s == N ) ans++; } } } cout << ans << endl; }