Problem:
Day of Week

The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?

Given a day in September 2017, write a program to report what day of the week it is.

Input

The input is given in the following format.

X

The input line specifies a day X (1 ≤ X ≤ 30) in September 2017.

Output

Output what day of the week it is in a line. Use the following conventions in your output: "mon" for Monday, "tue" for Tuesday, "wed" for Wednesday, "thu" for Thursday, "fri" for Friday, "sat" for Saturday, and "sun" for Sunday.

Sample Input 1

1

Sample Output 1

fri

Sample Input 2

9

Sample Output 2

sat

Sample Input 3

30

Sample Output 3

sat

Solution in Python3 (judge verdict: Accepted)

a=int(input())
if a==1 or a==8 or a==15 or a==22 or a==29:
    print("fri")
if a==2 or a==9 or a==16 or a==23 or a==30:
    print("sat")
if a==3 or a==10 or a==17 or a==24:
    print("sun")
if a==4 or a==11 or a==18 or a==25:
    print("mon")
if a==5 or a==12 or a==19 or a==26:
    print("tue")
if a==6 or a==13 or a==20 or a==27:
    print("wed")
if a==7 or a==14 or a==21 or a==28:
    print("thu")