Temperature Classifier

View as PDF

Submit solution

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

Author:
Problem type

Teddy is developing a weather program! Among many other features, it will also give the user a summary of today's temperature. But numbers suck, so he hopes you can help him write a program to classify a temperature (in degrees Celsius) as "cold", "cool", "warm", or "hot".

Temperatures are classified as such:

Temperature Classification Temperature Reading (in ^\circ C)
cold Below 15^\circ C
cool From 15^\circ C to 21^\circ C
warm From 22^\circ C to 30^\circ C
hot Above 30^\circ C

For this problem, you can also assume that the temperature reading is an integer.

Input Specification

The first line contains an integer C (-50\le C\le 50), the temperature reading in degrees Celsius.

Output Specification

One line with either "cold", "cool", "warm", or "hot" (all lowercase!), the classification of the given temperature reading

Sample Input

23

Sample Output

warm

Comments

There are no comments at the moment.