n = int(input()) week = ["Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", "Monday", ] print(week[n%7])