Greek car
After long journeys and wanderings, in one temple Kratos discovered an interesting find — a Greek car. It was one of the first prototypes that worked on clean energy. In the same temple, Kratos also found fuel — a fountain containing litres of clean energy.
Kratos knows that litre of clean energy is enough to cover kilometres. However, there is one problem — the tank of the machine is designed so that no more than litres of energy can be placed in it, and energy can only be replenished in the temple. However, having carefully studied the structure of this clean energy, Kratos realised that he could pour off it to the ground and leave it on the ground, and then return and put it into the tank without loss. Now he is interested in the question — what is the maximum distance he can travel on the machine he found?
Input
One real number — the number of litres of clean energy in the fountain.
Output
Print the maximum distance that Kratos can travel on the machine found. The answer should be displayed with an accuracy of decimal places.