from datetime import date

days = {i: d for i, d in enumerate(["mon", "tue", "wed", "thu", "fri", "sat", "sun"])}

day = int(eval(input()))

result = date(2017, 9, day)

index = result.weekday()

print((days[index]))
d = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"]

d = [None] + d * 4 + d[:2]

print((d[int(eval(input()))]))
from datetime import date

days = {i: d for i, d in enumerate(["mon", "tue", "wed", "thu", "fri", "sat", "sun"])}
day = int(eval(input()))
result = date(2017, 9, day)
index = result.weekday()
print((days[index]))

d = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"]
d = [None] + d * 4 + d[:2]
print((d[int(eval(input()))]))

-from datetime import date - -days = {i: d for i, d in enumerate(["mon", "tue", "wed", "thu", "fri", "sat", "sun"])} -day = int(eval(input())) -result = date(2017, 9, day) -index = result.weekday() -print((days[index])) +d = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"] +d = [None] + d * 4 + d[:2] +print((d[int(eval(input()))]))