def salutation(hour: int) -> str:
    """Determine the correct salutation using the hour parameter."""
    greetings = ((range(0, 12), "Good Morning",),
                 (range(12, 17), "Good Afternoon"),
                 (range(17, 24), "Good Evening"),)
    return list(filter(lambda x: hour in x[0], greetings))[0][1]