SMS from MCHS
InterviewTime limit1sMemory limit512 MB
Given today's and tomorrow's temperature and wind speed, print one of three fixed warning messages according to the first matching condition, or "No message".
- Level
Easy1 of 10
- Topics
- Implementation, Brute force
- Solved
- No attempts yet
Problem
You work for MCHS (Russian Ministry of Emergency Situations). You have just received a report from the Hydro-meteorological Center with information about today's weather and the forecast for tomorrow.
According to this report, the air temperature is degrees today, and the wind speed is meters per second. Tomorrow the air temperature will be degrees, and the wind speed will be meters per second.
Your task is to notify citizens about tomorrow's weather by SMS.
The most important goal is to warn citizens when a storm is possible. If, according to the forecast, the temperature tomorrow will be negative and the wind speed will be at least 10 meters per second, you must send a message with the following text:
A storm warning for tomorrow! Be careful and stay home if possible!
Otherwise, you may just notify citizens about bad weather changes.
If the temperature tomorrow will be lower than today, you must send a message warning about a cold snap. It must have the following text:
MCHS warns! Low temperature is expected tomorrow.
Otherwise, if the wind speed tomorrow will be higher than today, you must send a message warning about strong wind. It must have the following text:
MCHS warns! Strong wind is expected tomorrow.
If none of the above conditions is satisfied, you do not have to send a message at all.
Given the report from the Hydro-meteorological Center, determine which message has to be sent.
Input
The first line of input contains two integers and , the temperature and the wind speed for today (; ). The second line contains two integers and , the temperature and the wind speed for tomorrow (; ).
Output
If any message has to be sent, output its text. Otherwise, output the phrase "No message".
You can separate the words of the message with spaces and line feeds arbitrarily.