АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1591. Selection

Time Limit: 0.5 seconds
Memory Limit:262144KB
Points:100
View Problem Statistics Submit Problem added debug

The teacher of the H&H TCO daughter asked to solve the following problem. You should choose 3 different natural numbers in such a way so that their sum is even. TCO asked you to find out how many different variants there are to solve the problem if all 3 numbers are less or equal N.

Входные данные

Input contains the only integer number N (1 ≤ N ≤ 10000).

Выходные данные

Output the answer for the problem.

Пример

Входные данные
5
Выходные данные
6


View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / Trainings in Perm 2009 / 07.07.09 Big Contest /
1590. I - Painting the Natural Numbers 1591. 1592. K - Parquet
time generating 0.125 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.