#K84337. Time Slot Categorization

    ID: 36397 Type: Default 1000ms 256MiB

Time Slot Categorization

Time Slot Categorization

In this problem, you are given a list of timestamps in the format (HH:MM). Your task is to categorize each timestamp into one of the following time slots based on the hour component:

  • (00:00 \text{--} 05:59): Early Morning
  • (06:00 \text{--} 11:59): Morning
  • (12:00 \text{--} 17:59): Afternoon
  • (18:00 \text{--} 23:59): Evening

You need to read the input from standard input and output the result to standard output. Each input time should yield a corresponding time slot string according to the above categories.

inputFormat

The first line of the input contains an integer (n), the number of timestamps. Each of the following (n) lines contains a timestamp in the format (HH:MM).

outputFormat

Output (n) lines, each line containing the time slot category corresponding to the given timestamp.## sample

3
08:30
06:00
11:59
Morning

Morning Morning

</p>