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



Sample input:
1


Sample output:
fri

Submission status: Wrong Answer

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

Submission status: Accepted

Solution code:
x = int(input())
l = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
print(l[(x-4)%7])

Submission status: Accepted

Solution code:
ans=["thu","fri","sat","sun","mon","tue","wed"]
i=int(input())
print(ans[i%7])

Submission status: Accepted

Solution code:
week=["thu","fri","sat","sun","mon","tue","wed"]
n=int(input())
print(week[n%7])

Submission status: Accepted

Solution code:
def main():
    w = ['fri','sat','sun','mon','tue','wed','thu']
    x = int(input()) - 1
    print(w[x%7])

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
print(["thu","fri","sat","sun","mon","tue","wed"][int(input())%7])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
a=int(input())
if a%7==1:
    print("fri")
if a%7==2:
    print("sat")
if a%7==3:
    print("sun")
if a%7==4:
    print("mon")
if a%7==5:
    print("tue")
if a%7==6:
    print("wed")
if a%7==0:
    print("thu")

Submission status: Accepted

Solution code:
a = int(input())
week = {0:"thu",1:"fri",2:"sat",3:"sun",4:"mon",5:"tue",6:"wed"}
print(week[a%7])

Submission status: Accepted

Solution code:
X = int(input())
if(X % 7 == 0):
    print("thu")
elif(X % 7 == 1):
    print("fri")
elif(X % 7 == 2):
    print("sat")
elif(X % 7 == 3):
    print("sun")
elif(X % 7 == 4):
    print("mon")
elif(X % 7 == 5):
    print("tue")
elif(X % 7 == 6):
    print("wed")

Submission status: Accepted

Solution code:
print(("thu", "fri", "sat", "sun", "mon", "tue", "wed")[int(input()) % 7])

Submission status: Accepted

Solution code:
week = ["sat", "sun", "mon", "tue", "wed", "thu", "fri"]
print(week[(int(input()) - 9) % 7])

Submission status: Accepted

Solution code:
X = int(input())
temp = X % 7

if temp == 0:
    print("thu")
elif temp == 1:
    print("fri")
elif temp == 2:
    print("sat")
elif temp == 3:
    print("sun")
elif temp == 4:
    print("mon")
elif temp == 5:
    print("tue")
elif temp == 6:
    print("wed")

Submission status: Accepted

Solution code:
import datetime
dic = ["mon","tue","wed","thu","fri","sat","sun"]
now = datetime.datetime(2017, 9, int(input()))
print(dic[now.weekday()])

Submission status: Accepted

Solution code:
X = int(input())
week = ['thu', 'fri', 'sat', 'sun', 'mon', 'tue','wed']
print(week[X%7])

Submission status: Accepted

Solution code:
X = int(input())
X = (X-9)%7
if X<0: X = X+7
y = ''
if X==0:
	y = 'sat'
elif X==1:
	y = 'sun'
elif X==2:
	y = 'mon'
elif X==3:
	y = 'tue'
elif X==4:
	y = 'wed'
elif X==5:
	y = 'thu'
elif X==6:
	y = 'fri'
print(y)

Submission status: Accepted

Solution code:

import datetime
import locale

d = int(input())
dt = datetime.datetime(2017,9,d)

print(dt.strftime("%a").lower())

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
X=int(input())

if X%7==1:
    print('fri')
elif X%7==2:
    print('sat')
elif X%7==3:
    print('sun')
elif X%7==4:
    print('mon')
elif X%7==5:
    print('tue')
elif X%7==6:
    print('wed')
else:
    print('thu')

Submission status: Accepted

Solution code:
num = int(input()) #標準入力
if num % 7 == 0:print("thu") #numを7で割った余りが0なら"thu"を出力する
if num % 7 == 1:print("fri") #numを7で割った余りが1なら"fri"を出力する
if num % 7 == 2:print("sat") #numを7で割った余りが2なら"sat"を出力する
if num % 7 == 3:print("sun") #numを7で割った余りが3なら"sun"を出力する
if num % 7 == 4:print("mon") #numを7で割った余りが4なら"mon"を出力する
if num % 7 == 5:print("tue") #numを7で割った余りが5なら"tue"を出力する
if num % 7 == 6:print("wed") #numを7で割った余りが6なら"wed"を出力する

Submission status: Accepted

Solution code:
print(["thu","fri","sat","sun","mon","tue","wed"][int(input())%7])

Submission status: Accepted

Solution code:
x = int(input())
a = ['mon','tue','wed','thu','fri','sat','sun']

print(a[(x+3) % 7])

Submission status: Accepted

Solution code:
w=["thu","fri","sat","sun","mon","tue","wed"]
print(w[int(input())%7])

Submission status: Accepted

Solution code:
days = ["thu","fri","sat","sun","mon","tue","wed"]
a = int(input())
print(days[a%7])

Submission status: Accepted

Solution code:
X = int(input())

if X%7 == 4:
    print("mon")
elif X%7 == 5:
    print("tue")
elif X%7 == 6:
    print("wed")
elif X%7 == 0:
    print("thu")
elif X%7 == 1:
    print("fri")
elif X%7 == 2:
    print("sat")
elif X%7 == 3:
    print("sun")

Submission status: Accepted

Solution code:
day = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"]
x = int(input())
print(day[abs(x - 1) % 7])

Submission status: Accepted

Solution code:
D =["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(D[x%7])

Submission status: Accepted

Solution code:
def main():
    w = ['fri','sat','sun','mon','tue','wed','thu']
    x = int(input()) - 1
    print(w[x%7])
   
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    w = ['fri','sat','sun','mon','tue','wed','thu']
    x = int(input()) - 1
    print(w[x%7])
  
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
X = int(input())

s = [0,1,2,3]

if (X == 9-7-1):
 print('fri')
elif (X == 9-7):
 print('sat')
elif (X == 9-7+1):
 print('sun')
elif (X == 9-7+2):
 print('mon')
elif (X == 9-7+3):
 print('tue')
elif (X == 9-7+4):
 print('wed')
elif (X == 9-7+5):
 print('thu')
elif (X == 9-7+6):
 print('fri')

for i in s:
 if(X == 9+7*i):
   print('sat')
 elif (X == (9+7*i)+1):
   print('sun')
 elif (X == (9+7*i)+2):
   print('mon')
 elif (X == (9+7*i)+3):
   print('tue')
 elif (X == (9+7*i)+4):
   print('wed')
 elif (X == (9+7*i)+5):
   print('thu')
 elif (X == (9+7*i)+6):
   print('fri')

Submission status: Accepted

Solution code:
youbi = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
print(youbi[(int(input())-4) % 7])

Submission status: Accepted

Solution code:
day = ["sat","sun","mon","tue","wed","thu","fri"]
dayf = ["thu","fri","sat","sun","mon","tue","wed"]
x = int(input())
if x < 9:
        print(dayf[x%7])
else:
        print(day[abs(x-9)%7])

Submission status: Accepted

Solution code:
X = int(input())
if X%7==2 :
  print('sat')
elif X%7==3 :
  print('sun')
elif X%7==4 :
  print('mon')
elif X%7==5 :
  print('tue')
elif X%7==6 :
  print('wed')
elif X%7==0 :
  print('thu')
elif X%7==1 :
  print('fri')

Submission status: Accepted

Solution code:
n = ("thu","fri","sat","sun","mon","tue","wed")
X = int(input())

print(n[X%7])

Submission status: Accepted

Solution code:
def main():
    w = ['fri','sat','sun','mon','tue','wed','thu']
    x = int(input()) - 1
    print(w[x%7])
 
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from datetime import date
 
weekdays = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
 
x = int(input())
idx = date(2017, 9, x).weekday()
print(weekdays[idx])

Submission status: Accepted

Solution code:
day = ["fri","sat","sun","mon","tue","wed","thu"]
x = int(input())
print(day[abs(x-1) % 7])

Submission status: Accepted

Solution code:
w = ("thu", "fri", "sat", "sun", "mon", "tue", "wed")
n = int(input())
print(w[n%7])

Submission status: Accepted

Solution code:
x=int(input())
if x%7==2 :
  print('sat')
  
elif x%7==3 :
  print('sun')
  
elif x%7==4 :
  print('mon')
  
elif x%7==5 :
  print('tue')
  
elif x%7==6 :
  print('wed')
  
elif x%7==0 :
  print('thu')
  
elif x%7==1 :
  print('fri')

Submission status: Accepted

Solution code:
X = int(input())
if X % 7 == 0:
  print('thu')
if X % 7 == 1:
  print('fri')
if X % 7 == 2:
  print('sat')
if X % 7 == 3:
  print('sun')
if X % 7 == 4:
  print('mon')
if X % 7 == 5:
  print('tue')
if X % 7 == 6:
  print('wed')

Submission status: Accepted

Solution code:
W = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] * 10
n = int(input())
print(W[n+3])

Submission status: Accepted

Solution code:
x=int(input())
if x%7==0:
   print("thu");
elif x%7==1:
   print("fri");
elif x%7==2:
   print("sat");
elif x%7==3:
   print("sun");
elif x%7==4:
   print("mon");
elif x%7==5:
   print("tue");
else :
   print("wed");

Submission status: Accepted

Solution code:
X= int(input())


if(X + 7) % 7 == 0:
     print('thu')
elif(X + 8) % 7 == 0:
    print('wed')
elif(X + 9) % 7 == 0:
    print('tue')
elif(X + 10) % 7 == 0:
    print('mon')
elif(X + 11) % 7 == 0:
    print('sun')
elif(X + 12) % 7 == 0:
    print('sat')
elif(X + 13) % 7 == 0:
    print('fri')

Submission status: Accepted

Solution code:
D = ["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(D[x%7])

Submission status: Accepted

Solution code:
X = int(input())

if X%7 == 2 :
  print('sat')
if X%7 == 3:
  print('sun')
if X%7 == 4:
  print('mon')
if X%7 == 5:
  print('tue')
if X%7 == 6 :
  print('wed')
if X%7 == 0:
  print('thu')
if X%7 == 1:
  print('fri')

Submission status: Accepted

Solution code:
X = int(input())

if X % 7 == 0:
    print("thu")
elif X % 7 ==1:
    print("fri")
elif X % 7 ==2:
    print("sat")
elif X % 7 ==3:
    print("sun")
elif X % 7 ==4:
    print("mon")
elif X % 7 ==5:
    print("tue")
elif X % 7 ==6:
    print("wed")

Submission status: Accepted

Solution code:
x = int(input())

if (x%7 ==1):
  print("fri")
elif (x%7 ==2):
  print("sat")
elif (x%7 ==3):
  print("sun")
elif (x%7 ==4):
  print("mon")
elif (x%7 ==5):
  print("tue")
elif (x%7 ==6):
  print("wed")
else:
  print("thu")

Submission status: Accepted

Solution code:
X = int(input())

s = [0,1,2,3]

if (X == 9-7-1):
  print('fri')
elif (X == 9-7):
  print('sat')
elif (X == 9-7+1):
  print('sun')
elif (X == 9-7+2):
  print('mon')
elif (X == 9-7+3):
  print('tue')
elif (X == 9-7+4):
  print('wed')
elif (X == 9-7+5):
  print('thu')
elif (X == 9-7+6):
  print('fri')

for i in s:
  if(X == 9+7*i):
    print('sat')
  elif (X == (9+7*i)+1):
    print('sun')
  elif (X == (9+7*i)+2):
    print('mon')
  elif (X == (9+7*i)+3):
    print('tue')
  elif (X == (9+7*i)+4):
    print('wed')
  elif (X == (9+7*i)+5):
    print('thu')
  elif (X == (9+7*i)+6):
    print('fri')

Submission status: Accepted

Solution code:
d = int(input())
y = d % 7
if y == 0:
  print ('thu')
elif y == 1:
  print('fri')
elif y == 2:
  print('sat')  
elif y == 3:
  print('sun')
elif y == 4:
  print('mon')
elif y == 5:
  print('tue')
elif y == 6:
  print('wed')

Submission status: Accepted

Solution code:
X=int(input())
if(X%7==2):
  print("sat")
elif(X%7==3):
  print("sun")
elif(X%7==4):
  print("mon")
elif(X%7==5):
  print("tue")
elif(X%7==6):
  print("wed")
elif(X%7==0):
  print("thu")
else:
  print("fri")

Submission status: Accepted

Solution code:
X=int(input())
sut=9-7
fri=9-1-7  
thu=9-2-7
wed=9-3
tue=9-4
mon=9-5
sun=9-6
if X==sut or X==sut+7 or X==sut+7*2 or X==sut+7*3 or X==sut+7*4:
  print("sat")
if X==fri or X==fri+7 or X==fri+7*2 or X==fri+7*3 or X==fri+7*4:
  print("fri")
if X==thu+7 or X==thu+7*2 or X==thu+7*3 or X==thu+7*4:
  print("thu")
if X==wed or X==wed+7 or X==wed+7*2 or X==wed+7*3:
  print("wed")
if X==tue or X==tue+7 or X==tue+7*2 or X==tue+7*3:
  print("tue")
if X==mon or X==mon+7 or X==mon+7*2 or X==mon+7*3:
  print("mon")
if X==sun or X==sun+7 or X==sun+7*2 or X==sun+7*3:
  print("sun")

Submission status: Accepted

Solution code:

X=int(input())
Day=["mon","tue","wed","thu","fri","sat","sun"]
a=X%7
if a==2 or a==3:
  print(Day[a+3])
elif a==4 or a==5 or a==6:
  print(Day[a-4])
elif a==0 or a==1:
  print(Day[a+3])

Submission status: Accepted

Solution code:
x=int(input())
y=x%7
if y==1:
  print("fri")
elif y==2:
  print("sat")
elif y==3:
  print("sun")
elif y==4:
  print("mon")
elif y==5:
  print("tue")
elif y==6:
  print("wed")
elif y==0:
  print("thu")

Submission status: Accepted

Solution code:
week=["thu","fri","sat","sun","mon","tue","wed"]
n=int(input())
print(week[n%7])

Submission status: Accepted

Solution code:
W = ["mon","tue","wed","thu","fri","sat","sun"]*10
n = int(input())
print(W[n+3])

Submission status: Accepted

Solution code:
x= int(input())

if x%7 == 3:
  print("sun")

elif x%7 == 4:
  print("mon")

elif x%7 == 5:
  print("tue")
  
elif x%7 == 6:
  print("wed")

elif x%7 == 0:
  print("thu")
  
elif x%7 == 1:
  print("fri")
  
elif x%7 == 2:
  print("sat")

Submission status: Accepted

Solution code:
M =["mon","tue","wed","thu","fri","sat","sun"]*10

n = int(input())
print(M[n+3])

Submission status: Accepted

Solution code:
day = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"]
x = int(input())
print(day[abs(x - 1) % 7])

Submission status: Accepted

Solution code:
x=int(input())
week=["thu","fri","sat","sun","mon","tue","wed"]
print(week[x%7])

Submission status: Accepted

Solution code:
day = int(input())
Date = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] * 2
a = day % 7
print(Date[a + 3])

Submission status: Accepted

Solution code:

W = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] * 10
n = int(input())
print(W[n+3])

Submission status: Accepted

Solution code:
X = int(input())
table = ["mon","tue","wed","thu","fri","sat","sun"]

print(table[(X+3)%7])

Submission status: Accepted

Solution code:
x_ = input()
x = int(x_)
weeks = ['mon','tue','wed','thu','fri','sat','sun']
week = x%7+3
if week >= 7:
    week = week-7
print(weeks[week])

Submission status: Accepted

Solution code:
D = ["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(D[x%7])

Submission status: Accepted

Solution code:
day = ["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(day[x % 7])

Submission status: Accepted

Solution code:
print(("thu","fri","sat","sun","mon","tue","wed")[int(input())%7])

Submission status: Accepted

Solution code:
lis = ["thu","fri","sat","sun","mon","tue","wed"]
print(lis[int(input()) % 7])

Submission status: Accepted

Solution code:
from datetime import date

weekdays = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]

x = int(input())
idx = date(2017, 9, x).weekday()
print(weekdays[idx])

Submission status: Runtime Error

Solution code:
while True:
  for i in range(1,31):
    n=int(input())
    if i%7==0:
      print('{}'.format('thu'))
    elif i%7==1:
      print('{}'.format('fri'))
    elif i%7==2:
      print('{}'.format('sat'))
    elif i%7==3:
      print('{}'.format('san'))
    elif i%7==4:
      print('{}'.format('mon'))
    elif i%7==5:
      print('{}'.format('tue'))  
    else:
      print('{}'.format('wed'))

Submission status: Runtime Error

Solution code:
while True:
  for i in range(1,31):
    n=int(input())
    if n%7==0:
      print('{}'.format('thu'))
    elif n%7==1:
      print('{}'.format('fri'))
    elif n%7==2:
      print('{}'.format('sat'))
    elif n%7==3:
      print('{}'.format('san'))
    elif n%7==4:
      print('{}'.format('mon'))
    elif n%7==5:
      print('{}'.format('tue'))  
    else:
      print('{}'.format('wed'))

Submission status: Runtime Error

Solution code:
while True:
  n=int(input())
  if n%7==0:
    print('{}'.format('thu'))
  elif n%7==1:
    print('{}'.format('fri'))
  elif n%7==2:
    print('{}'.format('sat'))
  elif n%7==3:
    print('{}'.format('san'))
  elif n%7==4:
    print('{}'.format('mon'))
  elif n%7==5:
    print('{}'.format('tue'))  
  else:
    print('{}'.format('wed'))

Submission status: Runtime Error

Solution code:
while True:
  n=int(input())
  if n%7==0:
    print('{}'.format('thu'))
  elif n%7==1:
    print('{}'.format('fri'))
  elif n%7==2:
    print('{}'.format('sat'))
  elif n%7==3:
    print('{}'.format('sun'))
  elif n%7==4:
    print('{}'.format('mon'))
  elif n%7==5:
    print('{}'.format('tue'))  
  else:
    print('{}'.format('wed'))

Submission status: Runtime Error

Solution code:
a=int(input())
if a%7==1:
    print("fri")
if a%7==2:
    print("sat")
if a%7==3:
    print("sun")
if a%7==4:
    print("mon")
if a%7==5:
    print("tue")
if a%7==6:
    print("wed")
if a%==7:
    print("thu")

Submission status: Runtime Error

Solution code:
a=int(input())
if a%7==1:
    print("fri")
if a%7==2:
    print("sat")
if a%7==3:
    print("sun")
if a%7==4:
    print("mon")
if a%7==5:
    print("tue")
if a%7==6:
    print("wed")
if a%==0:
    print("thu")