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 (Python):
x = int(input())
l = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
print(l[(x-4)%7])

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

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

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

if __name__ == '__main__':
    main()

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

Solution (Python):
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])

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

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

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

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

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

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

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

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

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

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

Solution (Python):
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)

Solution (Python):

import datetime
import locale

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

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

Solution (Python):


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')

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
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')

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

Solution (Python):
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])

Solution (Python):
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')

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

print(n[X%7])

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

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

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

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

Solution (Python):
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')

Solution (Python):
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')

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

Solution (Python):
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");

Solution (Python):
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')

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

Solution (Python):
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')

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

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

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

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

Solution (Python):
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')

Solution (Python):
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')

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

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

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

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

Solution (Python):

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])

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):
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])

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

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

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

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

Solution (Python):
from datetime import date

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

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