WC '17 Contest 1 J2 - How's the Weather?

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem type
Woburn Challenge 2017-18 Round 1 - Junior Division

"Ugh, It's been so hot out lately, why does it have to be 32 degrees…"
"32 degrees? That's freezing!"

You're had quite enough of confusing conversations with Americans who assume you're using Farenheit 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 Farenheit instead.

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

C = \frac{5}{9} \times (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 Farenheit for the Americans' benefit.

It's guaranteed that C will be chosen such that F will come out to exactly an integer, but you may output it with 0 or more digits after the decimal point.

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 Farenheit which is equivalent to C degrees Celsius.

Sample Input


Sample Output



There are no comments at the moment.