How's the Weather

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 128M

Author:
Problem type

You've had quite enough of confusing conversations with Americans who assume you're using Fahrenheit when Celsius is clearly the way to go. Rather than argue with them, you've settled for writing a program to conveniently convert temperatures measured in degrees Celsius to Fahrenheit instead.

You came across the following formula, which holds true given that F is a temperature in degrees Fahrenheit while C is that same temperature in degrees Celsius:

\displaystyle C=5/9*(F-32)

Given a value of C, which is an integer between -40 and 40 (inclusive), determine the corresponding value of F, so that you can express the equivalent temperature in degrees Fahrenheit for the Americans' benefit.

It’s guaranteed that C will be chosen such that F will come out to be an integer.

Input Specification

The first and only line of input consists of a single integer, C.

Output Specification

Output a single integer, the temperature in degrees Fahrenheit which is equivalent to C degrees Celsius.

Sample Input

20

Sample Output

68

Comments

There are no comments at the moment.