Hide

Problem B
Driving Dilemma

The day has finally come for Rishi to take his driving test. He’s learned all of the rules of the road. He has practiced for many hours, and now he just needs to follow all of the rules of the road to pass the driving test.

Rishi’s first challenge comes at the first intersection. As he approaches the intersection, the light turns yellow! If he does not make it to the other side of the intersection before the light turns red, he will have violated the rules of the road and will fail the test.

Because Rishi is a good driver, he is driving at exactly the speed limit, and will continue going at exactly the speed limit as he goes through the intersection. Rishi is also very good at determining distances, so he knows exactly how many feet away from the end of the intersection he is. And, since Rishi has practiced driving so much, he also knows exactly how many seconds the light will remain yellow before turning red. After turning red, the traffic light will remain red.

If Rishi continues driving at exactly the speed limit, will he make it to the end of the intersection or beyond that point before the light turns red? (For the purpose of this problem, you can assume that Rishi and his car are a single point with no length or width.)

Input

The first line of input will contain of a single integer $10 \leq S \leq 10\, 000$, the speed limit (in miles per hour) of the road Rishi is driving on.

The second line of input will contain of a single real number $0 \leq D \leq 100\, 000$, the distance (in feet) to the end of the intersection. The number will have at most $4$ digits after the decimal point.

The third line of input will contain a single real number $0 \leq T \leq 100\, 000$, the amount of time (in seconds) before the traffic light turns red. The number will have at most $4$ digits after the decimal point.

In order to avoid problems with rounding, you are guaranteed that Rishi will be at least one foot from the end of the intersection, or at least one foot after the end of the intersection when the light turns red. Note your comparisons should still be exact; do not factor in this guarantee into your answer.

Output

If Rishi will make it through the intersection before the light turns red, output “MADE IT” (without the quotes). Otherwise, output “FAILED TEST” (without the quotes).

Sample Input 1 Sample Output 1
45
60.0
1.0
MADE IT
Sample Input 2 Sample Output 2
55
200.0
2.0
FAILED TEST

Please log in to submit a solution to this problem

Log in