• + 0 comments

    import calendar

    M,D,Y=input().split() year=int(Y) month=int(M) day=int(D) out=calendar.weekday(year,month,day) days=list(calendar.day_name)

    print(days[out].upper())