After having his driver's license revoked for speeding, Zain is forced to bike to school on his electric unicycle.
On his unicycle, his speed in metres can be modelled by the function
Since Zain is a model citizen (and does not want his electric unicycle license revoked as well), he will stop when he reaches a speed above
Because Zain does not trust himself to stop, he entrusts you with telling him the exact time to stop within an absolute error of
Can you save Zain's license?
Input Specification
The first line will contain
Output Specification
Output the time Zain should dismount his unicycle in seconds.
Note: A solution will be accepted with up to an error of
Sample Input
Copy
15
Sample Output
Copy
1.308365
Comments
never did i ever think i was going to need the quadratic formula to solve dmoj problems, but here we are...