days=[31,28,31,30,31,30,31,31,30,31,30,31] week = ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'] # 2018년 1월 1일은 '월요일' month = int(input('월을 입력하세요:')) day = int(input('일을 입력하세요:')) sumOfDays = 0 for b in days[:month-1] : sumOfDays += b sumOfDays += day print(week[sumOfDays%7])