All problems

Convert Celsius to Fahrenheit

easyPythonMath

A weather site publishes in Celsius, and its American readers have asked for the Fahrenheit figure alongside. The two scales disagree about two separate things: where freezing sits, and how big one degree is. Putting both corrections together gives F = C * 9 / 5 + 32. The page is typeset to a fixed width, so every reading is shown with two decimal places even when it does not need them.

Task: Read a Celsius reading and print the same temperature in Fahrenheit.

Input

A single line holding one number c, the temperature in Celsius. It may be negative, and it may have a decimal point.

Output

One line holding the Fahrenheit value with exactly two digits after the decimal point — 77.00, never 77 or 77.0. A negative reading keeps its minus sign.

Example:

Input:
25

Output:
77.00

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…