x = int(input("Enter: "))

if x % 7 == 0:
    print("Sunday funday")
if x % 7 == 1:
    print("Monday")
if x % 7 == 2:
    print("Tuesday")
if x % 7 == 3:
    print("Wednesday")
if x % 7 == 4:
    print("Thursday")
if x % 7 == 5:
    print("Friday")
if x % 7 == 6:
    print("Saturday")