a=int(input())
if(a%7==0):
 print("sunday")
elif(a%7==1):
 print("monday")
elif(a%7==2):
 print("tuesday")
elif(a%7==3):
 print("wednesday")
elif(a%7==4):
 print("thursday")
elif(a%7==5):
 print("friday")
elif(a%7==6):
 print("saturday")
else:
print('number is not defined')

