Water is a substance we interact with daily. It is the only naturally occurring gas that can exist in all three states of matter (ice, water, water vapour) at normal atmospheric conditions. If the water's temperature is below or equal to 0°C, it is in solid form. If it is between 0°C and 100°C, it is in liquid form. Finally, if it is greater than or equal to 100°C, it is in its gaseous state.
Your science teacher has given you the following task: given the temperature of a sample of water, predict its state of matter. You have decided to code a program to do your homework for you.
The input consists of a single line containing a single integer , where is the temperature of the water sample.
Output a single character indicating the state of the water. Use
S to indicate solid,
L to indicate liquid, and
G to indicate gas.
Water is in liquid form when is between 0°C and 100°C. 69°C is between 0°C and 100°C, so at , the water is in liquid form.
L is thus the output.