day_of_the_week = input()
work_day = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]
day_off = ["Saturday", "Sunday"]

if day_of_the_week in work_day:
    print("Working day")
elif day_of_the_week in day_off:
    print("Weekend")
else:
    print("Error")
