#Lutece1308. Banana Watch
Banana Watch
Migrated from Lutece 1308 Banana Watch
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
As a famous technology company, Banana Inc. invents Banana Watch, redefining the watch.
While a normal watch has indexes and two or three moving hands, a Banana Watch has indexes and a moving hand.
The moving hand is at initially, and in second, it turns index clockwise; in second, it turns indexes clockwise; ... ; in second, it turns indexes clockwise. When it moves back to exactly, one minute passes (Yes, Banana Inc. also redefines the minute).
How many seconds in the first minute?
Input
One integer .
Output
Print the number of seconds in the first minute.
Samples
3
2
5
4
Note
If , in second, the hand moves to ; in second, the hand moves to ; in second, the hand moves to ; in second, the hand moves to . So the answer for is .
Resources
The 14th UESTC Programming Contest Final