• + 0 comments
    # I googled calendar module and found the .weekday() method. The rest of the solution is easy.
    import calendar
    
    month, day, year = input().split()
    weekday = calendar.weekday(int(year), int(month), int(day))
    week = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
    print(week[weekday])