Bicycle Speed

Time limit1sMemory limit128 MB

Problem

Most bicycle speedometers measure wheel rotations with a Hall effect sensor mounted on the front fork. A magnet attached to one side of the front wheel fork passes the sensor once per wheel rotation. Therefore, if the wheel diameter and the number of rotations are known, the traveled distance can be computed. If the elapsed time is also known, the average speed can be computed as well.

Given the wheel diameter, the number of rotations, and the elapsed time, compute the total distance traveled and the average speed. Assume that the front wheel never leaves the ground, slips, or spins in place.

Print the distance in miles and the average speed in miles/hour.

Input

The input consists of several data lines. Each line contains the wheel diameter, the number of rotations, and the elapsed time, separated by spaces. The diameter is a real number in inches, the number of rotations is an integer, and the time is a real number in seconds. Real numbers are given with at most three digits after the decimal point.

The input ends when a line has 0 rotations.

Output

For each data line, print one line in the following format.

Trip #N: distance MPH

N is the data number starting from 1. distance is the total distance in miles rounded to two digits after the decimal point, and MPH is the average speed in miles per hour rounded to two digits after the decimal point. Print nothing for the terminating line whose number of rotations is 0.

Hint

  • Use 3.1415927 for π.
  • 1 mile is 5280 feet.
  • 1 foot is 12 inches.
  • 1 hour is 60 minutes.
  • 1 minute is 60 seconds.
  • 1 furlong is 201.168 meters.