LearnPy Hub
← Arena
AdvancedRating 1900

Guaranteed Win in the Guessing Game

A number between 1 and n is hidden. Each wrong guess x costs x coins, and you're told if the number is higher or lower. Print the least amount of money that guarantees a win however the number is chosen.

Input

One integer n (1 ≤ n ≤ 200).

Output

One integer.

Sample 1

Input
1
Output
0

Sample 2

Input
2
Output
1
solution.py
Output appears here
Guaranteed Win in the Guessing Game · Python Arena problem · LearnPy Hub