D=input()
N=int(input())
dayNames = ['Sunday','Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
i = (N%7) -1
if D in dayNames:
dayIndex = dayNames.index(D)+i
if dayIndex >= 7:
dayIndex =- 7
print(dayNames[dayIndex])
Comments
Leave a comment