week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
day = 0
a, b = map(int, input().split())
for i in range(a-1):
day += month[i]
day += b
print(week[day % 7])
백준 9012 - 괄호 (파이썬) (0) | 2020.12.27 |
---|---|
백준 10828 - 스택 (자료구조, 파이썬) (0) | 2020.12.27 |
백준 10953 - A + B - 6 (파이썬) (0) | 2020.12.26 |
백준 2558 - A + B - 2 (파이썬) (0) | 2020.12.26 |
백준 1546 - 평균 (파이썬) (0) | 2020.07.26 |