def solution(a, b):
    month=[31,29,31,30,31,30,31,31,30,31,30,31]
    days = ['FRI','SAT','SUN','MON','TUE','WED','THU']
    day = sum(month[:a-1]) + b
    res = day%7
    return print(days[res-1])

solution(5,24)
solution(1,3) # SUN
6889bf3ee8100f93abe7e3a67b4f5f292f184238
<mask token>

def solution(a, b):
    month = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
    days = ['FRI', 'SAT', 'SUN', 'MON', 'TUE', 'WED', 'THU']
    day = sum(month[:a - 1]) + b
    res = day % 7
    return print(days[res - 1])


<mask token>

def solution(a, b):
    month = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
    days = ['FRI', 'SAT', 'SUN', 'MON', 'TUE', 'WED', 'THU']
    day = sum(month[:a - 1]) + b
    res = day % 7
    return print(days[res - 1])


solution(5, 24)
solution(1, 3)

def solution(a, b):
    month=[31,29,31,30,31,30,31,31,30,31,30,31]
    days = ['FRI','SAT','SUN','MON','TUE','WED','THU']
    day = sum(month[:a-1]) + b
    res = day%7
    return print(days[res-1])

solution(5,24)
solution(1,3) # SUN