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:
#!/usr/bin/env python3
import sys


def solve(S: str):
    l = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    print(7 - l.index(S))
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dow = list(reversed(['SUN','MON','TUE','WED','THU','FRI','SAT']))
today = input()
for i in range(len(dow)):
  if today == dow[i]:
    print(i+1)
    quit()

Submission status: Accepted

Solution code:
S=str(input())

a='SUN'
b='MON'
c='TUE'
d='WED'
e='THU'
f='FRI'
g='SAT'

if S==a:
    print(7)

elif S==b:
    print(6)

elif S==c:
    print(5)

elif S==d:
    print(4)

elif S==e:
    print(3)

elif S==f:
    print(2)

elif S==g:
    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:
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
print(7 - a.index(s))

Submission status: Accepted

Solution code:
s = input()

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

i = l.index(s)

ans = 7 - i

print(ans)

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
s = input()

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

ans = 7 - day_of_week.index(s)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(8):
  if a[i]==s:
    print(i)

Submission status: Accepted

Solution code:
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:
#146_A
day = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA']
s = input()[:2]
print(7 - day.index(s))

Submission status: Accepted

Solution code:
s = input()

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

diff  = abs(day.index(s) - 7)

print(diff)

Submission status: Accepted

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
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
else:
    ans = 1
print(ans)

Submission status: Accepted

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

if S == 'SUN':
    print(7)
else:
    print(7 - week.index(S) - 1)

Submission status: Accepted

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

idx=y.index(s)

print(len(y)-idx)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
Weeks = ["MON","TUE","WED","THU","FRI","SAT","SUN"]
ind = Weeks.index(S)
if S != "SUN":
    print(6-ind)
else:
    print(7)

Submission status: Accepted

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

print(dic[input()])

Submission status: Accepted

Solution code:
S = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
T = input()
count=1
for i in S:
    if i == T:
        print(count)
    count+=1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np
# import math
mod = 10**9 + 7

# n = int(input())
# a = list(map(int, input().split()))
s = input()
l = ['SUN','MON','TUE','WED','THU','FRI','SAT']
if s == l[0]: print(7)
elif s == l[1]: print(6)
elif s == l[2]: print(5)
elif s == l[3]: print(4)
elif s == l[4]: print(3)
elif s ==l[5]: print(2)
elif s == l[6]: print(1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 == '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()
lst = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-lst.index(s))

Submission status: Accepted

Solution code:
# coding: utf-8

lst = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
# print(S)
print(7 - lst.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:
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

weekdays = ['SUN','MON','TUE','WED','THU','FRI','SAT'][::-1]

S = input()
print(weekdays.index(S) + 1)

Submission status: Accepted

Solution code:
#a,b = map(int,input().split())
s = str(input())
S = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-S.index(s))

Submission status: Accepted

Solution code:
#a,b = map(int,input().split())
s = input()
S = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-S.index(s))

Submission status: Accepted

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

print(7 - S.index(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

d = input()

print(7-w.index(d))

Submission status: Accepted

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

Submission status: Accepted

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

print(m.get(input()))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

a = ['0','SAT','FRI','THU','WED','TUE','MON','SUN']
print(a.index(s))

Submission status: Accepted

Solution code:
s = str(input())

if 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')
elif s == 'SUN':
    print('7')

Submission status: Accepted

Solution code:
S = str(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:
  print(-1)

Submission status: Accepted

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

Submission status: Accepted

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

print(7 - day.index(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:
s = input()
l = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7 - l.index(s))

Submission status: Accepted

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

Submission status: Accepted

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

s = input()

print(7-LL.index(s))

Submission status: Accepted

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

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 solve():
    S = input()
    d = {'SUN': 7,
        'MON': 6,
        'TUE': 5,
        'WED': 4,
        'THU': 3,
        'FRI': 2,
        'SAT': 1
        
    }
    return d[S]

print(solve())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    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)
resolve()

Submission status: Accepted

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

Submission status: Accepted

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

s = input()
for i,v in enumerate(day_of_week):
    if v == s:
        print(7-i)

Submission status: Accepted

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

else :
		print(7)

Submission status: Accepted

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

ans = l.index(s)
print(7-ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
    s = input()
    indx = week.index(s)
    diff = 7 - indx
    if diff == 0:
        diff = 7
    print(diff)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s=input()
n=1
day=["SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in day:
  if s==i:
    print(n)
  n+=1

Submission status: Accepted

Solution code:
s = input()

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

i = l.index(s)

ans = abs(i - 7)

print(ans)

Submission status: Accepted

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

print(7 - week.index(s))

Submission status: Accepted

Solution code:
s = input()
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
i = 0
for c in week:
	i += 1
	if c == s:
		print(8-i)
		exit()

Submission status: Accepted

Solution code:
S = input()
flag = False
week = ['MON','TUE','WED','THU','FRI','SAT']
for i in range(6):
    if S==week[i]:
        flag = True
        print(6-i)
        break
if flag == False:
    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)
else :
    print(1)

Submission status: Accepted

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

for i in range(len(sl)):
    if (S == sl[i]):
        print(i+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
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:
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)
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()

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

for i, day in enumerate(days):
    if day == S:
        print(7-i)

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()
 
st = ['SAT','FRI','THU','WED','TUE','MON','SUN']
 
for i in range(7):
  if S==st[i]:
    print(i+1)

Submission status: Accepted

Solution code:
# A - Can't Wait for Holiday
w={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
s=input()
print(w[s])

Submission status: Accepted

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

weeks.index(s)
print(7 - weeks.index(s))

Submission status: Accepted

Solution code:
A = {'SU':7,'MO':6,'TU':5,'WE':4,'TH':3,'FR':2,'SA':1}
B = input()[0:2]
print(A.get(B))

Submission status: Accepted

Solution code:
S = input()

if 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)
else:
    print(7)

Submission status: Accepted

Solution code:
days = "SUN MON TUE WED THU FRI SAT".split()
print(7 - days.index(input()))

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


"""別解
S = input()
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
 
print(7 - days.index(S))
"""

Submission status: Accepted

Solution code:
s = str(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()


def judge(S):
    dow = 'SUN,MON,TUE,WED,THU,FRI,SAT'.split(',')
    for i in range(len(dow)):
        if (S == dow[i]):
            return 7 - i


print(judge(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

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

if s == 'SUN':
    print(7)

else:
    print(7 - day.get(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    S = input()
    weeks = list(reversed(['SUN','MON','TUE','WED','THU','FRI','SAT']))
    print(weeks.index(S)+1)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

import sys
import math
import time
#import numpy as np
import collections
from collections import deque
import queue
import copy
import bisect


def dfs(s, prev, pre):
  val[s] += Ope[s] + prev
  for i in G[s]:
    if(i == pre):
      continue
    dfs(i, val[s], s)

def bfs(sx, sy, n):
  que = deque([[sy,sx]])
  while que:
    y,x = que.popleft()
    for i,j in D:
      if(x+i<0 or y+j<0 or x+i>W-1 or y+j>H-1):
        continue
      dist = G[y+j][x+i]
      if(G[y+j][x+i] != "X"):
        if(type(G[y+j][x+i]) is str):
          G[y+j][x+i] = G[y][x]+1
          que.append([y+j,x+i])
        elif(dist>G[y][x]+1):
          G[y+j][x+i] = G[y][x]+1
          que.append([y+j,x+i])
        

#X = str(input()).split()
#a = [int(x) for x in input().split()]
#sys.setrecursionlimit(10**7)
#N, Q = map(int, input().split())
#G = [list(input()) for i in range(H)]

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
else:
  ans = 1


print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

if s[0] == 'S':
    if s[1] == 'U':
        print(7)
    else:
        print(1)
elif s[0] == 'M':
    print(6)
elif  s[0] == 'T':
    if s[1] == 'U':
        print(5)
    else:
        print(3)
elif s[0] == 'W':
    print(4)
elif s[0] == 'F':
    print(2)

Submission status: Accepted

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

day_num = day_list.index(S)

print(7-day_num)

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()
lis = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

ans = 7 - lis.index(s)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

s = input()
if s == 'SUN':
    print(7)
else:
    print(7 - (week.index(s)+1))

Submission status: Accepted

Solution code:
s = input()

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

ans = 7 - lis.index(s)

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

print(7 - ss.index(s))

Submission status: Accepted

Solution code:
S = input()

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

num = days.index(S)

if S=='SUN':
    out=7

else:
    out=6 - num

print(str(out))

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:
a = str(input())
ar = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7 - ar.index(a))

Submission status: Accepted

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

s = str(input())

if s == 'SUN':
  print(7)
else:
  print(d['SUN']-d[s])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

if S!= 'SUN':
    print(7-dayList.index(S))
else:
    print(7)

Submission status: Accepted

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



if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S=input()
A=["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-A.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:
l = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
S = input()
num = l.index(S)
print(7 - num)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

s = stdin.readline().rstrip()

if s != "SUN":
    a = day[day.index(s):]
    for i in a[::-1]:
        day.insert(0, i)
    print(day.index("SUN"))
else:
    print(7)

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

ans = 7 - YO.index(D)
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:
day = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s = input()
print(7-day.index(s))

Submission status: Accepted

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

print(week[input()])

Submission status: Accepted

Solution code:
s = input()
if 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)
elif s == "SUN":
    print(7)

Submission status: Accepted

Solution code:
n = input()
list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
x = 7
for item in list:
    if n == item:
        print(x)
    x -= 1

Submission status: Accepted

Solution code:

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

day = str(input())

if day == "SUN":
    result = 7
else:
    result = week.index("SUN") - week.index(day)

print(result)

Submission status: Accepted

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

ans = a.get(s)
print(ans)

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:
n = str(input())
list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
x = 7
for item in list:
    if(n == item):
        print(x)
    x -= 1

Submission status: Accepted

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

for a in range(len(lis)):
    if lis[a]==s:
        break
ans=7-a
print(ans)

Submission status: Accepted

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

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:
S=input()
if S[0]=='S':
    if S[1]=='U':
        print(7)
    else:
        print(1)
elif S[0]=='M':
    print(6)
elif S[0]=='T':
    if S[1]=='U':
        print(5)
    else:
        print(3)
elif S[0]=='W':
        print(4)
else:
        print(2)

Submission status: Accepted

Solution code:
s = input()

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

for i, day in enumerate(week):
    if s == day:
        print(7 - i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=["SUN","MON","TUE","WED","THU","FRI","SAT"]
l=l+l
#print(l)
s=input()
id1=-1
for i in range(len(l)):
  if l[i]==s:
    id1=i
    break
id2=-1
for i in range(id1+1,len(l)):
  if l[i]=="SUN":
    id2=i
    break
print(id2-id1)

Submission status: Accepted

Solution code:
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    s = str(readline().rstrip().decode('utf-8'))
    d = {v: 7 - i for i, v in enumerate(["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"])}
    print(d[s])


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
dic = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
ans = [v for k,v in dic.items() if k == s]
print (ans[0])

Submission status: Accepted

Solution code:
s = input()

week = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
for i, day in enumerate(week, start=1):
	if s == day:
		print(i)