CSES - KILO 2016 0/5 - Car
  • Time limit: 1.00 s
  • Memory limit: 128 MB

Uolevi has researched his cars fuel consumption. He has noticed that he is able to drive ex+xe^x + \sqrt{x} kilometres with xx litres of fuel.

What is the least amount of fuel in litres which is enough to drive dd kilometres?

Input

Input contains one decimal number, dd.

Output

Output the least amount of fuel in litres which if enough to drive dd kilometres.

The answer is considered correct if its distance from the correct answer is at most 10610^{-6}.

Constraints

  • 1d4001 \le d \le 400

Example

Syöte:

123.45

Tuloste:

4.79793355