LearnPy Hub
← If…Else problems
Medium

Greeting by the Hour

Read a time as HH:MM (24-hour). Print Good morning for 05:00–11:59, Good afternoon for 12:00–16:59, Good evening for 17:00–20:59 and Good night otherwise.

Input

One line.

Output

One line.

Sample 1

Input
07:30
Output
Good morning

Sample 2

Input
12:00
Output
Good afternoon
solution.py
Output appears here
Greeting by the Hour · Python practice problem · LearnPy Hub