Highway

Time Limit: 1000ms
Memory Limit: 512000KB
This problem will be judged on HDU. Original ID: 5134
64-bit integer IO format: %I64d      Java class name: Main
Special Judge

Description

You just got your year-end bonus. As you had a lot of money, you decided to take your family to the United States for a twenty-day self-driving travel. One day, when you were driving on the Great Plains, you found you had left highway by accident. After checking your GPS, you realized that you were now D (0 < D <= 1000) miles from the highway. The highway is straight and extends infinitely. When you are driving outside the highway, your maximum speed is v0 mph, but on the highway you can move in a maximum speed of v1 mph (200 >= v1 > 1.2 v0 > 0). It took no time to get on or off the highway. Suddenly, it came to your mind that there was a region inside which any point can be reached within T (0 < T <= 1000) hours. You wanted to know area of this region.

Input

Input contains no more than 50 test cases.

Each test case is a single line containing 4 integers v0, v1, D and T, as above mentioned.

Output

For each test case, output your answer in a line with the case number, follow the format in sample. Its unit should be square mile. Your answer will be accepted if its absolute or relative error is less than 10-6.

This problem is special judged.

Sample Input

5 10 10 10
5 20 10 10

Sample Output

Case 1: 9360.97707377
Case 2: 14873.82733943

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .