Problem:


Score : 100 points

Problem Statement

Given is a string S representing the day of the week today.

S is SUN, MON, TUE, WED, THU, FRI, or SAT, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.

After how many days is the next Sunday (tomorrow or later)?

Constraints

S is SUN, MON, TUE, WED, THU, FRI, or SAT.

Input

Input is given from Standard Input in the following format:

S

Output

Print the number of days before the next Sunday.

Sample Input 1

SAT

Sample Output 1

1

It is Saturday today, and tomorrow will be Sunday.

Sample Input 2

SUN

Sample Output 2

7

It is Sunday today, and seven days later, it will be Sunday again.



Sample input:
SAT


Sample output:
1

Submission status: Accepted

Solution code:
day = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
a = input() 
print (day[a])

Submission status: Accepted

Solution code:
a = str(input())
if a == 'SUN':
    print (7)
if a == 'MON':
    print (6)
if a == 'TUE':
    print (5)
if a == 'WED':
    print (4)
if a == 'THU':
    print (3)
if a == 'FRI':
    print (2)
if a == 'SAT':
    print (1)

Submission status: Accepted

Solution code:
a = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

s = input()

# for i,x in enumerate(a):
#   if s == x:
#     print(7-i)

print(len(a)-a.index(s))

Submission status: Accepted

Solution code:
d={"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1,"SUN":7}
print(d[input()])

Submission status: Accepted

Solution code:
L=["SUN","MON","TUE","WED","THU","FRI","SAT"]
S=input()
for i in range(7):
  if L[i]==S:
    print(7-i)

Submission status: Accepted

Solution code:
list = [ "SUN","MON","TUE","WED","THU","FRI","SAT" ]
temp = input()
for i in range(7):
  if temp == list[i]:
    print(7-i)
    break

Submission status: Accepted

Solution code:
s = input()
data = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i,x in enumerate(data):
    if x == s:
        print(7-i)
        exit()

Submission status: Accepted

Solution code:
print(["","SAT","FRI","THU","WED","TUE","MON","SUN"].index(input()))

Submission status: Accepted

Solution code:
S = input()
week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

for i, w in enumerate(week):
    if S == w:
        print(7 - i)

Submission status: Accepted

Solution code:
xx=["SUN", "MON", "TUE", "WED", "THU", "FRI","SAT"]
ans=[7,6,5,4,3,2,1]
s=input().strip()
print(ans[xx.index(s)])

Submission status: Accepted

Solution code:
d={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
print(d[input()])

Submission status: Accepted

Solution code:
import sys

#+++++

weeks=['SUN','MON','TUE','WED','THU','FRI','SAT']


def main():
	s=input()
	wd = weeks.index(s)
	return 7 - wd
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

Solution code:
name = input()

if name == 'SUN':
  print(7)
if name == 'MON':
  print(6)
if name == 'TUE':
  print(5)
if name == 'WED':
  print(4)
if name == 'THU':
  print(3)
if name == 'FRI':
  print(2)
if name == 'SAT':
  print(1)

Submission status: Accepted

Solution code:
strDay = input()

day_dict = {"SUN":7, "MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1}

ans = 0

if strDay in day_dict:
	ans = day_dict[strDay]

print(ans)

Submission status: Accepted

Solution code:
S = input()

d = {"SUN":7, "MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1}
print(d[S])

Submission status: Accepted

Solution code:
s=["SUN","MON","TUE","WED","THU","FRI","SAT"]
t=input().rstrip()
for i in range(0,7):
    if(s[i]==t):
        print(7-i)
        exit()

Submission status: Accepted

Solution code:
day = input()

target = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

index = target.index(day)

print(7-index)

Submission status: Accepted

Solution code:
s = raw_input()

dict = {'SAT':1, 'FRI':2, 'THU':3, 'WED':4, 'TUE':5, 'MON':6, 'SUN':7}

print dict[s]

Submission status: Accepted

Solution code:
s=input()
a=0
ss=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(len(ss)):
    if s==ss[i]:
        a=7-i
print(a)

Submission status: Accepted

Solution code:
s = input()
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
if s == week[0]:
    print(7)
else:
    for i in range(1,7):
        if s == week[i]:
            print(7-i)

Submission status: Accepted

Solution code:
def main():
    d = {"SUN": 7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
    print(d[(input())])
main()

Submission status: Accepted

Solution code:
a = input()

if a == 'SUN':
  print(7)
elif a == 'MON':
  print(6)
elif a == 'TUE':
  print(5)
elif a == 'WED':
  print(4)
elif a == 'THU':
  print(3)
elif a == 'FRI':
  print(2)
else:
  print(1)

Submission status: Accepted

Solution code:
s = input()

s2dict = {'SUN':7, 'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}

print(s2dict[s])

Submission status: Accepted

Solution code:
s = input()
weeks_dict = {"MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6,"SUN":7}
if(s=="SUN"):
    print(7)
else:
    print(7 - weeks_dict[s])

Submission status: Accepted

Solution code:
def main():
  mapping = {
    "SUN": 0,
    "MON": 1,
    "TUE": 2,
    "WED": 3,
    "THU": 4,
    "FRI": 5,
    "SAT": 6,
  }
 
 
  S = input()
  print(7-mapping[S])
 
if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
S = input()
if S == "MON":
    print(6)
elif S == "TUE":
    print(5)
elif S == "WED":
    print(4)
elif S == "THU":
    print(3)
elif S == "FRI":
    print(2)
elif S == "SAT":
    print(1)
else :
    print(7)

Submission status: Accepted

Solution code:
s=input()
if s=='SUN':
  print(7)

if s=='MON':
  print(6)

if s=='TUE':
  print(5)

if s=='WED':
  print(4)

if s=='THU':
  print(3)

if s=='FRI':
  print(2)

if s=='SAT':
  print(1)

Submission status: Accepted

Solution code:
s = input()
print(['', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'].index(s))

Submission status: Accepted

Solution code:
S = input()
day = ["SAT","FRI","THU","WED","TUE","MON","SUN"]

for i in range(7):
    if S==day[i]:
        print(i+1)

Submission status: Accepted

Solution code:
a = dict()

a["SUN"] = 7
a["MON"] = 6
a["TUE"] = 5
a["WED"] = 4
a["THU"] = 3
a["FRI"] = 2
a["SAT"] = 1

print(a[input()])

Submission status: Accepted

Solution code:
SUN=7
MON=6
TUE=5
WED=4
THU=3
FRI=2
SAT=1
x=input()	
print(x)

Submission status: Accepted

Solution code:
str = input()
if str == 'SUN':
 print(7)
elif str == 'MON':
 print(6)
elif str == 'TUE':
 print(5)
elif str == 'WED':
 print(4)
elif str == 'THU':
 print(3)
elif str == 'FRI':
 print(2)
elif str == 'SAT':
 print(1)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 9)

week = "SUN,MON,TUE,WED,THU,FRI,SAT".split(',')
S = input()

print(7-week.index(S))

Submission status: Accepted

Solution code:
s = input()

if s =="SUN":
	print("7")
elif s =="MON":
	print("6")
elif s =="TUE":
	print("5")
elif s =="WED":
	print("4")
elif s =="THU":
	print("3")
elif s =="FRI":
	print("2")
elif s =="SAT":
	print("1")

Submission status: Accepted

Solution code:
x = input()
ls = ['SUN', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON']
day = ls.index(x)
if not day == 0:
    print(day)
else:
    print(7)

Submission status: Accepted

Solution code:
from heapq import heappush,heappop,heapify
from collections import deque,defaultdict,Counter
import itertools
from itertools import permutations,combinations
import sys
import bisect
import string
import math
import time
#import random
def I():
    return int(input())
def MI():
    return map(int,input().split())
def LI():
    return [int(i) for i in input().split()]
def LI_():
    return [int(i)-1 for i in input().split()]
def StoI():
    return [ord(i)-97 for i in input()]
def ItoS(nn):
    return chr(nn+97)
def show(*inp,end='\n'):
    if show_flg:
        print(*inp,end=end)
YN=['Yes','No']
mo=10**9+7
inf=float('inf')
l_alp=string.ascii_lowercase
u_alp=string.ascii_uppercase
ts=time.time()
#sys.setrecursionlimit(10**6)
input=lambda: sys.stdin.readline().rstrip()

show_flg=False
#show_flg=True

w=['SUN','MON','TUE','WED','THU','FRI','SAT']

s=input()

for i in w:
    d=w.index(i)
    show(i,7-d)

d=w.index(s)
show(7-d)
print(7-d)

Submission status: Accepted

Solution code:
l = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
ind = l.index(s)
if ind == 7:
    print(7)
else:
    print(7-ind)

Submission status: Accepted

Solution code:
s = input()
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']


ans = 7 - week.index(s)


print(ans)

Submission status: Accepted

Solution code:
ans = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = str(input())
ans.reverse()
print(ans.index(S)+1)

Submission status: Accepted

Solution code:
lis = ["SUN","SAT","FRI","THU","WED","TUE","MON"]
s = input()
if s == "SUN":
  print(7)
else:
  print(lis.index(s))

Submission status: Accepted

Solution code:
week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

S = input()

if S == 'SUN':
  answer = 7
elif S == 'MON':
  answer = 6
elif S == 'TUE':
  answer = 5
elif S == 'WED':
  answer = 4
elif S == 'THU':
  answer = 3
elif S == 'FRI':
  answer = 2
elif S == 'SAT':
  answer = 1

print(answer)

Submission status: Accepted

Solution code:
S = input()

if S == 'SUN':
  print(7)
if S == 'MON':
  print(6)
if S == 'TUE':
  print(5)
if S == 'WED':
  print(4)
if S =='THU':
  print(3)
if S =='FRI':
  print(2)
if S == 'SAT':
  print(1)

Submission status: Accepted

Solution code:
s = input()

if s == "SUN":
  print(7)
elif s == "MON":
  print(6)
elif s == "TUE":
  print(5)
elif s == "WED":
  print(4)
elif s == "THU":
  print(3)
elif s == "FRI":
  print(2)
elif s == "SAT":
  print(1)

Submission status: Accepted

Solution code:
input1 = input()
inputbox1 = input1

if(inputbox1 == "SAT"):
    print("1")
elif(inputbox1 == "SUN"):
    print("7")
elif(inputbox1 == "MON"):
    print("6")
elif(inputbox1 == "TUE"):
    print("5")
elif(inputbox1 == "WED"):
    print("4")
elif(inputbox1 == "THU"):
    print("3")
elif(inputbox1 == "FRI"):
    print("2")

Submission status: Accepted

Solution code:
# A - Can't Wait for Holiday
s = input()

day = 0

if s == 'SUN':
    day = 7
elif s == 'MON':
    day = 6
elif s == 'TUE':
    day = 5
elif s == 'WED':
    day = 4
elif s == 'THU':
    day = 3
elif s == 'FRI':
    day = 2
else:
    day = 1

print(day)

Submission status: Accepted

Solution code:

s = input()
if s == 'SUN':
    print("7")
elif s == 'MON':
    print("6")
elif s == 'TUE':
    print("5")
elif s == 'WED':
    print("4")
elif s == 'THU':
    print("3")
elif s == 'FRI':
    print("2")
elif s == 'SAT':
    print("1")

Submission status: Accepted

Solution code:
s = str(input())
lst = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

print(7-int(lst.index(s)))

Submission status: Accepted

Solution code:
A = list(reversed(["SUN","MON","TUE","WED","THU","FRI","SAT"]))
s = input()
ans = A.index(s)
print(ans+1)

Submission status: Accepted

Solution code:
S = input()
if S == 'SUN':
  print('7')
elif S == 'MON':
  print('6')
elif S == 'TUE':
  print('5')
elif S == 'WED':
  print('4')
elif S == 'THU':
  print('3')
elif S == 'FRI':
  print('2')
elif S == 'SAT':
  print('1')
else :
  pass

Submission status: Accepted

Solution code:
def solve(s):
    return 7 - ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].index(s)


def main():
    s = input()
    print(solve(s))


def test():
    assert solve("SAT") == 1
    assert solve("SUN") == 7


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = input()
d = {'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6,'SUN':7}
print(abs(d[n]-7) if d[n]-7 != 0 else 7)

Submission status: Accepted

Solution code:
S = input()

if S == "SUN":
    print("7")
elif S == "SAT":
    print("1")
elif S == "FRI":
    print("2")
elif S == "THU":
    print("3")
elif S == "WED":
    print("4")
elif S == "TUE":
    print("5")
elif S == "MON":
    print("6")

Submission status: Accepted

Solution code:
s = input()

if s=="SUN":
  print(7)
elif s == "MON":
  print(6)
elif s == "TUE":
  print(5)
elif s == "WED":
  print(4)
elif s == "THU":
  print(3)
elif s == "FRI":
  print(2)
elif s == "SAT":
  print(1)

Submission status: Accepted

Solution code:
def f(S):
    d = {"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
    return print(d[str(S)])
f(input())

Submission status: Accepted

Solution code:
d={"SUN":0, "MON":1, "TUE":2, "WED":3, "THU":4, "FRI":5,"SAT":6}
s=input()
print(7-d[s])

Submission status: Accepted

Solution code:
a=["SUN","MON","TUE","WED","THU","FRI","SAT"][::-1]
print(a.index(input())+1)

Submission status: Accepted

Solution code:
s=input()
a=["SAT","FRI","THU","WED","TUE","MON","SUN"]
print(a.index(s)+1)

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    S = input()

    if S == "SUN":
        print(7)
    elif S == "MON":
        print(6)
    elif S == "TUE":
        print(5)
    elif S == "WED":
        print(4)
    elif S == "THU":
        print(3)
    elif S == "FRI":
        print(2)
    elif S == "SAT":
        print(1)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()

days = ('SUN','MON','TUE','WED','THU','FRI','SAT')

print(7-int(days.index(s)))

Submission status: Accepted

Solution code:
S=input()
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-days.index(S))

Submission status: Accepted

Solution code:
today=input()
a=['SUN','MON','TUE','WED','THU','FRI','SAT' ]
for i in range(7):
    if a[i%7]==today:
        print(7-i)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
# sys.setrecursionlimit(100000)


class Solver(object):
    def __init__(self):
        pass

    def solve(self, S):
        ans = {"SUN": 7, "MON": 6, "TUE": 5,
               "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
        print(ans[S])


def main():
    S = input().rstrip()

    solver = Solver()
    solver.solve(S)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
weekday = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
x = str(input())

print(7 - weekday.index(x))

Submission status: Accepted

Solution code:
S=input()

if S == "SUN":
    print("7")
elif S == "SAT":
    print("1")
elif S == "MON":
    print("6")
elif S == "TUE":
    print("5")
elif S == "WED":
    print("4")
elif S == "THU":
    print("3")
elif S == "FRI":
    print("2")

Submission status: Accepted

Solution code:
S = input()
W = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(len(W)):
  if S == W[i]:
    print(7-i)

Submission status: Accepted

Solution code:
str = input()
 
day = {"MON":1, "TUE":2, "WED":3, "THU":4, "FRI":5, "SAT":6, "SUN":7}
 
if str == "SUN":
    print(7)
else:
    print(day["SUN"] - day[str])

Submission status: Accepted

Solution code:
s = input()
weekday = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
print(7 - weekday.index(s))

Submission status: Accepted

Solution code:
s = input()

if s == "SUN":
  print("7")
elif s == "MON":
  print("6")
elif s == "TUE":
  print("5")
elif s == "WED":
  print("4")
elif s == "THU":
  print("3")
elif s == "FRI":
  print("2")
else:
  print("1")

Submission status: Accepted

Solution code:
S=input()
dict=["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-dict.index(S))

Submission status: Accepted

Solution code:
# 入力が10**5とかになったときに100ms程度早い
import sys
read = sys.stdin.readline


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_matrix(H):
    '''
    H is number of rows
    '''
    return [list(map(int, read().split())) for _ in range(H)]


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols

    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])

    return ret


S = input()
ls = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
today = ls.index(S)
print(7 - today)

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = read().rstrip().decode('utf-8')

weekday = 'SUN,MON,TUE,WED,THU,FRI,SAT'.split(',')
dic = {x:7 - i%7 for i,x in enumerate(weekday)}

answer = dic[S]
print(answer)

Submission status: Accepted

Solution code:
s = str(input())

if 'SUN' in s :
  print(7)
  
elif 'MON' in s :
  print(6)
  
elif 'TUE' in s :
  print(5)
  
elif 'WED' in s :
  print(4)
  
elif 'THU' in s :
  print(3)
  
elif 'FRI' in s :
  print(2)
  
else :
  print(1)

Submission status: Accepted

Solution code:
xs = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
d = dict()
for i,x in enumerate(xs):
    d[x] = 7-i
print(d[input().strip()])

Submission status: Accepted

Solution code:
a = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
print(a[input()])

Submission status: Accepted

Solution code:
s=input()
if(s=="SUN"):
  print(7)
if(s=="MON"):
  print(6)
if(s=="TUE"):
  print(5)
if(s=="WED"):
  print(4)
if(s=="THU"):
  print(3)
if(s=="FRI"):
  print(2)
if(s=="SAT"):
  print(1)

Submission status: Accepted

Solution code:
c=0
a=input()
if a=='SUN':
  c+=7
elif a=='MON':
  c+=6
elif a=='TUE':
  c+=5
elif a=='WED':
  c+=4
elif a=='THU':
  c+=3
elif a=='FRI':
  c+=2
else:
  c+=1
print(c)

Submission status: Accepted

Solution code:
s=input()

yo=["SUN","MON","TUE","WED","THU","FRI","SAT" ]

if(s==yo[0]):
    print(7)
else:
    for i in range(1,7):
        if(s==yo[i]):
            print(7-i)

Submission status: Accepted

Solution code:
days=['MON','TUE','WED','THU','FRI','SAT','SUN']
a = input()
if a=='SUN':
  print(7)
else:
  print(days.index('SUN')-days.index(a))

Submission status: Accepted

Solution code:
#import pysnooper
#import numpy
#import os,re,sys,operator
#from collections import Counter,deque
#from operator import itemgetter
#from itertools import accumulate,combinations,groupby,combinations_with_replacement,permutations
from sys import stdin,setrecursionlimit
#from bisect import bisect_left
#from copy import deepcopy
#import heapq
#import math
#import string
#from time import time
#from functools import lru_cache
setrecursionlimit(10**6)
input=stdin.readline

s=input().rstrip()
a=["","SAT","FRI","THU","WED","TUE","MON","SUN"]
print(a.index(s))

Submission status: Accepted

Solution code:
n = input()
if n == "MON":
    print("6")
elif n == "TUE":
    print("5")
elif n == "WED":
    print("4")
elif n == "THU":
    print("3")
elif n == "FRI":
    print("2")
elif n == "SAT":
    print("1")
else:
    print("7")

Submission status: Accepted

Solution code:
x=input()

if x == "SUN":
    print(7)
elif x == "MON":
    print(6)
elif x == "TUE":
    print(5)
elif x == "WED":
    print(4)
elif x == "THU":
    print(3)
elif x == "FRI":
    print(2)
elif x == "SAT":
    print(1)

Submission status: Accepted

Solution code:
s=input()
if s == 'SUN':
  print(7)
if s == 'MON':
  print(6)
if s == 'TUE':
  print(5)
if s == 'WED':
  print(4)
if s == 'THU':
  print(3)
if s == 'FRI':
  print(2)
if s == 'SAT':
  print(1)

Submission status: Accepted

Solution code:
s=input()
if s=='SUN':
  print('7')
elif s=='MON':
  print('6')
elif s=='TUE':
  print('5')
elif s=='WED':
  print('4')
elif s=='THU':
  print('3')
elif s=='FRI':
  print('2')
else:
  print('1')

Submission status: Accepted

Solution code:
S = input()
days =  ["SUN", "MON", "TUE", "WED" ,"THU", "FRI", "SAT"]
for i in range(7):
    if S == days[i]:
        ans = 7 - i
        break

print(ans)

Submission status: Accepted

Solution code:
D = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

S = input()
if S == "SUN":
    print(7)
else:
    a = D.index(S)
    print(7 - a)

Submission status: Accepted

Solution code:
s = input()
day = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1 }
print(day[s])

Submission status: Accepted

Solution code:
str = input()
if str=="SUN":
  print(7)
elif str=="MON":
  print(6)
elif str=="TUE":
  print(5)
elif str=="WED":
  print(4)
elif str=="THU":
  print(3)
elif str=="FRI":
  print(2)
else :
  print(1)

Submission status: Accepted

Solution code:
date = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
day = ["7","6","5","4","3","2","1"] 

S = input()
n = date.index(S)
print(day[n])

Submission status: Accepted

Solution code:
val={"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
tod=input()
print(val[tod])

Submission status: Accepted

Solution code:
s = ['','SAT','FRI','THU','WED','TUE','MON','SUN']
print(s.index(input()))

Submission status: Accepted

Solution code:
n = input()
arr = ['SUN','MON','TUE','WED','THU','FRI','SAT']
i=arr.index(n)
print(7-i)

Submission status: Accepted

Solution code:


if __name__ == "__main__":
    # week = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
    week = ["SUN", "SAT", "FRI", "THU", "WED",  "TUE", "MON"]

    S = input()
    count = 0 

    for i in week:
        if S != i:
            count += 1
        elif S == i:
            if count == 0:
                count = 7
            print(count)
            exit(0)

Submission status: Accepted

Solution code:
S = input()

if S == 'SUN':
  print(7)
elif S == 'MON':
  print(6)
elif S == 'TUE':
  print(5)
elif S == 'WED':
  print(4)
elif S == 'THU':
  print(3)
elif S == 'FRI':
  print(2)
elif S == 'SAT':
  print(1)

Submission status: Accepted

Solution code:
S = input()
Dictionary = {"SAT":1,"FRI":2,"THU":3,"WED":4,"TUE":5,"MON":6,"SUN":7}
Day = Dictionary[S]
print(Day)

Submission status: Accepted

Solution code:
w = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
s = input()
if type(s) is str and len(s) == 3:
    print(w[s.upper()])

Submission status: Accepted

Solution code:
S = input()
if S == "SUN":
    print(7)
elif S =="MON":
    print(6)
elif S == "TUE":
    print(5)
elif S == "WED":
    print(4)
elif S == "THU":
    print(3)
elif S == "FRI":
    print(2)
else:
    print(1)

Submission status: Accepted

Solution code:
y=input()
# s=[[0 for i in range(m)] for j in range(n)]
# for i in range(n):
# 	s[i]=list(input())
 # SUN,MON,TUE,WED,THU,FRI,SAT
if y=='SUN':
	print(7)
elif y=='MON':
	print(6)
elif y=='TUE':
	print(5)
elif y=='WED':
	print(4)
elif y=='THU':
	print(3)
elif y=='FRI':
	print(2)
elif y=='SAT':
	print(1)

Submission status: Accepted

Solution code:
s = str(input())
ans_list = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}
print(ans_list[s])

Submission status: Accepted

Solution code:
S = input()
ans=0
if S=="SUN":
    ans=7
elif S=="MON":
    ans=6
elif S=="TUE":
    ans=5
elif S=="WED":
    ans=4
elif S=="THU":
    ans=3
elif S=="FRI":
    ans=2
elif S=="SAT":
    ans=1

print (ans)

Submission status: Accepted

Solution code:
day=input()
week=['SUN','MON','TUE','WED','THU','FRI','SAT']
num=7-week.index(day)

print(num)

Submission status: Accepted

Solution code:
l={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
print(l[input()])

Submission status: Accepted

Solution code:
s= input()
day=['SUN','MON','TUE','WED','THU','FRI','SAT']
days=[7,6,5,4,3,2,1]

for i in range(len(day)):
  if s==day[i]:
    print(days[i])

Submission status: Accepted

Solution code:
s = str(input())
ans = 0

if s=='SUN':
  ans = 7
elif s=='MON':
  ans = 6
elif s=='TUE':
  ans = 5
elif s=='WED':
  ans = 4
elif s=='THU':
  ans = 3
elif s=='FRI':
  ans = 2
elif s=='SAT':
  ans = 1
  
print(ans)

Submission status: Accepted

Solution code:
# A - Can't Wait for Holiday
S = str(input())
####
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
ans = 7 - week.index(S)
print(ans)

Submission status: Accepted

Solution code:
s = input()

if s == "SUN":
    print("7")
elif s == "MON":
    print("6")
elif s == "TUE":
    print("5")
elif s == "WED":
    print("4")
elif s == "THU":
    print("3")
elif s == "FRI":
    print("2")
elif s == "SAT":
    print("1")

Submission status: Accepted

Solution code:
s = input('')
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']

for i in range(7):
    if i != 6 and s == a[i]:
        print(int(7-i))
        break
    elif i == 6:
        print(1)

Submission status: Accepted

Solution code:
from fractions import gcd
from datetime import date, timedelta
from heapq import*
import math
from collections import defaultdict, Counter, deque
import sys
from bisect import *
import itertools
import copy
sys.setrecursionlimit(10 ** 7)
MOD = 10 ** 9 + 7


def main():
    s = input()
    if s == "SUN":
        print(7)
    elif s == "MON":
        print(6)
    elif s == "TUE":
        print(5)
    elif s == "WED":
        print(4)
    elif s == "THU":
        print(3)
    elif s == "FRI":
        print(2)
    else:
        print(1)

    


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s=input()
l=["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
for i in range(7):
  if l[i]==s:
    print(7-i)

Submission status: Accepted

Solution code:
week = ('SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN')

S = input()

print(week.index(S) + 1)

Submission status: Accepted

Solution code:
s = input()		# 文字列の入力  abcdefg...


if s=='SUN': ans=7
if s=='MON': ans=6
if s=='TUE': ans=5
if s=='WED': ans=4
if s=='THU': ans=3
if s=='FRI': ans=2
if s=='SAT': ans=1

print(ans)

Submission status: Accepted

Solution code:
days = ['', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
S = input()
print(days.index(S))

Submission status: Accepted

Solution code:
s = input()

if s == "SUN":
    print(7)
elif s == "MON":
    print(6)
elif s == "TUE":
    print(5)
elif s == "WED":
    print(4)
elif s == "THU":
    print(3)
elif s == "FRI":
    print(2)
elif s == "SAT":
    print(1)

Submission status: Accepted

Solution code:
S = input()
X = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}

print(X[S])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
from itertools import product
from collections import Counter, defaultdict
#input = sys.stdin.readline
def inpl(): return list(map(int, input().split()))

date = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
S = input()
j = date.index(S)
for i in range(1, 8):
    if date[(i+j)%7] == "SUN":
        print(i)

Submission status: Accepted

Solution code:
O = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
print(7 if S=='SUN' else 7 - O.index(S))

Submission status: Accepted

Solution code:
def main():
    dow = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
    s = input()
    i = dow.index(s) + 1
    print(i)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:

n=input()


if n=='SUN':
    ans = 7
elif n=='MON':
    ans = 6
elif n=='TUE':
    ans = 5
elif n=='WED':
    ans = 4
elif n=='THU':
    ans = 3
elif n=='FRI':
    ans = 2
elif n=='SAT':
    ans = 1

print(ans)

Submission status: Accepted

Solution code:
def main():
    day = input()

    days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

    day_num = days.index(day)

    print(7 - day_num)


main()

Submission status: Accepted

Solution code:
S = input()

Today = {"SUN":1,  "MON":2,  "TUE":3, "WED":4, "THU":5, "FRI":6, "SAT":7}

print(8-Today[S])

Submission status: Accepted

Solution code:
s = input().strip()

days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

print(7 - days.index(s))

Submission status: Accepted

Solution code:
input_day = input()

day_dict = {"SUN":7,
                 "MON":6,
                 "TUE":5,
                 "WED":4,
                 "THU":3,
                  "FRI":2,
                  "SAT":1}

print(day_dict[input_day])

Submission status: Accepted

Solution code:
S = input()
if S == 'SUN':
  print("7")
if S == 'MON':
  print("6")
if S == 'TUE':
  print("5")
if S == 'WED':
  print("4")
if S == 'THU':
  print("3")
if S == 'FRI':
  print("2")
if S == 'SAT':
  print("1")

Submission status: Accepted

Solution code:
li = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

a = input()

for i in range(7):
    if a == li[i]:
        print(6-i+1)
        break

Submission status: Accepted

Solution code:
week = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}
s = input()
print(week[s])

Submission status: Accepted

Solution code:
s = input()

if s == 'SUN':
    print('7')
if s == 'SAT':
    print('1')
if s == 'FRI':
    print('2')
if s == 'THU':
    print('3')
if s == 'WED':
    print('4')
if s == 'TUE':
    print('5')
if s == 'MON':
    print('6')

Submission status: Accepted

Solution code:
s = input()
if s == "SAT":
    print(1)
if s == "FRI":
    print(2)
if s == "THU":
    print(3)
if s == "WED":
    print(4)
if s == "TUE":
    print(5)
if s == "MON":
    print(6)
if s == "SUN":
    print(7)

Submission status: Accepted

Solution code:
s = input()

if s == 'SUN':
  print(7)
elif s == 'MON':
  print(6)
elif s == 'TUE':
  print(5)
elif s == 'WED':
  print(4)
elif s == 'THU':
  print(3)
elif s == 'FRI':
  print(2)
elif s == 'SAT':
  print(1)

Submission status: Accepted

Solution code:
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()

print(7 - days.index(S))

Submission status: Accepted

Solution code:
S=input()
if(S=="SUN"):
    print(7)
elif(S=="MON"):
    print(6)
elif(S=="TUE"):
    print(5)
elif(S=="WED"):
    print(4)
elif(S=="THU"):
    print(3)
elif(S=="FRI"):
    print(2)
elif(S=="SAT"):
    print(1)

Submission status: Accepted

Solution code:
S = str(input())
Week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i, day in enumerate(Week):
  if day == S:
    until = 7 - i
    print(until)
  else:
    pass

Submission status: Accepted

Solution code:
S = str(input())
l = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
ans = l[S]
print(ans)

Submission status: Accepted

Solution code:
a = input()
if a=='SUN':
    print(7)
elif a=='MON':
    print(6)
elif a=='TUE':
    print(5)
elif a=="WED":
    print(4)
elif a=="THU":
    print(3)
elif a=="FRI":
    print(2)
elif a=="SAT":
    print(1)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s = input()

a = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

print(7-a.index(s))

Submission status: Accepted

Solution code:
s = str(input())
w="SUN"
x="MON"
c="TUE"
v="WED"
b="THU"
n="FRI"
if w == s:
    ans = 7
elif x == s:
    ans = 6
elif c == s:
    ans = 5
elif v == s:
    ans = 4
elif b == s:
    ans = 3
elif n ==s:
    ans = 2
else:
    ans = 1
print(ans)

Submission status: Accepted

Solution code:
s = input()

if s == "SUN":
  print(7)
elif s == "MON":
  print(6)
elif s == "TUE":
  print(5)
elif s == "WED":
  print(4)
elif s== "THU":
  print(3)
elif s == "FRI":
  print(2)
elif s == "SAT":
  print(1)

Submission status: Accepted

Solution code:
S=input()

if S=="MON":
    print(6)
elif S=="TUE":
    print(5)
elif S=="WED":
    print(4)
elif S=="THU":
    print(3)
elif S=="FRI":
    print(2)
elif S=="SAT":
    print(1)
elif S=="SUN":
    print(7)

Submission status: Accepted

Solution code:
DaysUntil = {"SAT":"1", "FRI":"2", "THU":"3", "WED":"4", "TUE":"5", "MON":"6", "SUN":"7"}
print(DaysUntil[str(input())])

Submission status: Accepted

Solution code:
S = input()
if S == "SAT" :
    print(1)
if S == "FRI" :
    print(2)
if S == "THU" :
    print(3)
if S == "WED" :
    print(4)
if S == "TUE" :
    print(5)
if S == "MON" :
    print(6)
if S == "SUN" :
    print(7)

Submission status: Accepted

Solution code:
S = input()

if(S=='SUN'):
    print(7)
elif(S=='MON'):
    print(6)
elif(S=='TUE'):
    print(5)
elif(S=='WED'):
    print(4)
elif(S=='THU'):
    print(3)
elif(S=='FRI'):
    print(2)
elif(S=='SAT'):
    print(1)