day = input()
working_days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
rest_days = ['Saturday', 'Sunday']
print('Working day' if day in working_days else 'Weekend' if day in rest_days else 'Error')


# Monday
# April
