Fraschetti's Parachute

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 24M

Author:
Problem type

After losing a bet with Mr. Carullo, Mr. Fraschetti must jump off the CN Tower and fall freely for several seconds before releasing his parachute. His height can be modeled by the function h = -4.9t^2 + t + 360 before releasing his parachute and h = -4t + b after he releases it where h is his height, in meters, t seconds after jumping. Given b, how long after jumping did Mr. Fraschetti wait before releasing his parachute?

Input Specification

The first line will contain the integer b (b \le 361).

Output Specification

Output the amount of time in seconds rounded to one decimal place.

Sample Input

142

Sample Output

7.2

Comments