day = int(raw_input('Day(0-6)? '))
#weekDay = [("Sunday", 0), ("Monday", 1), ("Tuesday", 2), ("Wednesday", 3), ("Thursday", 4), ("Friday", 5), ("Saturday", 6)]
if day == 0:
    print "Sunday"
elif day == 1:
    print "Monday"
elif day == 2:
    print "Tuesday"
elif day == 3:
    print "Wednesday"
elif day == 4:
    print "Thursday"
elif day == 5:
    print "Friday"
elif day == 6:
    print "Saturday"
