favorite We need a little bit of your help to keep things running, click on this banner to learn more

Buy the water

Buy the water

The cost of a bottle of water (including the cost of the empty bottle) is 1 dollar 20 cents. The cost of the empty bottle is 20 cents.

How many bottles of water is it possible to drink for n dollars, if you can recycle bottles for cash and buy new bottles of water for this cach.


Positive integer n (1n1000).


Number of bottles of water that you can drink for n dollars.

Time limit 1 second
Memory limit 128 MiB
Input example #1
Output example #1

Example description: You canot buy the water without a bottle