407141: GYM102697 112 Unit Conversions

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

112. Unit Conversionstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Converting from one unit of measurement to another is very useful. Make a program that can convert between, feet, inches, meters, centimeters, miles, and kilometers. Use the following conversions to get the correct answer: .08333 feet in 1 inch, 3.28084 feet in 1 meter, 0.0328084 feet in one centimeter, 5280 feet in 1 mile, and 3280.84 feet in 1 kilometer.

Input

One line describing a conversion: Ex: "The road is 1.5 miles, how many kilometers is it."

Output

Print the value of the conversion and the unit.

ExampleInput
I am 1.5 meters, how many feet am I
Output
4.92126 feet
Note

The first number and unit will always be right before the ",". after the "," it will always "how many" then the unit you are converting to.

加入题单

算法标签: