13254 - Temperature Conversion   

Description

Converting temperature between Celsius and Fahrenheit is a basic skill. You are asked to write a program which can do such task automatically. The following is the conversion rule:

Input

Given a integer t and two chars x, y ( 'C' or 'F'). Please convert the temperature t from unit x to y.  

(0 <= t <= 1000)

Output

Output the answer, which is a floating point rounded to 2nd decimal places.

Please print '\n' in the last line.

Sample Input  Download

Sample Output  Download

Tags




Discuss