#C6629. Email Subject Classification

    ID: 50410 Type: Default 1000ms 256MiB

Email Subject Classification

Email Subject Classification

In this problem, you are given a list of email subject lines. Your task is to classify each subject line as either (\texttt{urgent}) or (\texttt{not urgent}). A subject line is classified as (\texttt{urgent}) if and only if it contains all three of the following substrings (case-insensitive): "project", "deadline", and "important". Otherwise, it should be classified as (\texttt{not urgent}). This problem will test your ability to process strings and perform case-insensitive substring searches.

inputFormat

The input is read from standard input (stdin). The first line contains an integer (n) representing the number of email subject lines. This is followed by (n) lines, each line containing a subject line as a string.

outputFormat

For each subject line, print a line to standard output (stdout) containing the classification: either "urgent" or "not urgent".## sample

4
Project deadline is approaching
This is an important project update
Deadline extension for important project
Team meeting about the project
not urgent

not urgent urgent not urgent

</p>