14665 - Sky Diving   

Description

Everyone who jumped out of a plane knows that you should open your parachute when the altitude is at about 5500 ft.

David is new here and wonder how many seconds he can freefall before opening the parachute, so please help him calculate it.

hint: the equation for Linear Uniform Acceleration

[2025/09/04T00:30:00] Both testcases and sampleIO are now fixed for correct equation and decimal handling.

Input

The first line contains 3 interger hv and a.

5500 ≤ h ≤ 15000 (ft), stands for how height he jumps out.

12 ≤ v ≤ 20 (ft/s)stands for the speed he jumps out.

24 ≤ a ≤ 40 (ft/s2), stands for the speed he accelerates.

Output

How many seconds later should he open his parachute. (drop the decimal points and leave only the integer part)

Sample Input  Download

Sample Output  Download

Tags




Discuss