#C12904. Urgency Assessment
Urgency Assessment
Urgency Assessment
You are given a text message and your task is to assess the level of urgency conveyed by the message. The urgency is classified into three categories:
- High: When more than one urgent keyword is present.
- Medium: When exactly one urgent keyword is present.
- Low: When no urgent keywords are present.
The determination should be done by searching for the presence of certain keywords in the case-insensitive version of the message. The keywords to search for are:
\(\texttt{urgent}\), \(\texttt{immediate}\), \(\texttt{as soon as possible}\), \(\texttt{right away}\), and \(\texttt{immediately}\).
Implement a function that reads a message from standard input and prints the urgency level to standard output.
inputFormat
The input consists of a single line containing the message that needs to be assessed. The message can include spaces and punctuation.
outputFormat
Output a single line which is one of the following strings: High
, Medium
, or Low
.
This is urgent and needs immediate attention.
High