• + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    import calendar
    m, d, y = input().split()
    # day_index = calendar.weekday(int(y), int(m), int(y))
    y, m, d = int(y), int(m), int(d)
    day_index = calendar.weekday(y, m, d)
    days_of_week = list(calendar.day_name)
    print(days_of_week[day_index].upper())