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:
import sys

input = sys.stdin.readline


def main():
    next_day = {
        "SAT": 1,
        "FRI": 2,
        "THU": 3,
        "WED": 4,
        "TUE": 5,
        "MON": 6,
        "SUN": 7,
    }

    S = input().rstrip()
    ans = next_day[S]
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i for i2 in range(j)]
#import bisect #bisect.bisect_left(B, a)
#from collections import defaultdict #d = defaultdict(int) d[key] += value
#from collections import Counter # a = Counter(A).most_common()
#from itertools import accumulate #list(accumulate(A))

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

S = input()

for i in range(7):
    if A[i] == S:
        print(7-i)
        exit()

Submission status: Accepted

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

if '__main__' == __name__:
    resolve()

Submission status: Accepted

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

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

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

print(7 - ls.index(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
A=["a","SAT","FRI","THU","WED","TUE","MON","SUN"] 
print(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:
a=["SUN","MON","TUE","WED","THU","FRI","SAT"]
s=input()
k=-1
for i in range(7):
    if(a[i]==s):k=i
k=(7-k)
print(k)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

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

Submission status: Accepted

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

Submission status: Accepted

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

print(T[S])

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:
import sys
base = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()

if not ( S in base ): sys.exit()

print(7 - base.index(S))

Submission status: Accepted

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

print(7 - W.index(input()))

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

Submission status: Accepted

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

index = days.index(S)
print(7-index)

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")

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=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)
elif 'SAT' in S:
    print(1)

Submission status: Accepted

Solution code:
s = str(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:
w = {'SAT': 1, 'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2}
s = input()
print(w[s])

Submission status: Accepted

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

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:
di = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
s = input()
print(di[s])

Submission status: Accepted

Solution code:
s=input()

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

for i in range(7):
    if w[i]==s:
        print(i+1)
        break

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:
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)
main()

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:
W = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()
for i, num in enumerate(W):
  if S == num:
    print(7-i)

Submission status: Accepted

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

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 = 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 = input()

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

print(ans_dict[s])

Submission status: Accepted

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

Submission status: Accepted

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

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

print(7-days.index(S))

Submission status: Accepted

Solution code:
a = input()

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

p = arr.index(a)

print(7-p)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
SS = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = readline().decode().rstrip()
for i in range(7):
    if S == SS[i]:
        print(7-i)
        sys.exit()

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"]
n = L.index(input())
print( 7-n )

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(answer[S])

Submission status: Accepted

Solution code:
# from collections import Counter, defaultdict
# n = int(input())
# li = list(map(int, input().split()))
# n = int(input())
# a, b = map(int, input().split())
# d = defaultdict(lambda: 0)
li = ["SUN", "MON", "TUE", 'WED', "THU", "FRI", "SAT"]
s = input()
print(7-li.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
elif S == "SAT":
    ans = 1
print(ans)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(6 - week.index(S)) if week.index(S) != 6 else print(7)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(dict[s])

Submission status: Accepted

Solution code:
S = input()
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
i = 0
for d in reversed(days):
    i += 1
    if d == S:
        break
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import os, sys, re, math

S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


# input = sys.stdin.readline

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()
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:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
s = input()
l = [0,'SAT','FRI','THU','WED','TUE','MON','SUN']
print(l.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
elif s=="SAT":
    ans=1
print(ans)

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:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()
    days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

    print(7 - days.index(S))

    return


if __name__ == '__main__':
    main()

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:
S = input()

week_list = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
print(week_list.index(S) + 1)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

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

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

Submission status: Accepted

Solution code:
print(-sum(map(ord,input()))**236%6133%8)

Submission status: Accepted

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

for i in range(7):
    if S == l[i]:
        print(7-i)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

s = str(input())

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

print(dic[s])

Submission status: Accepted

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

S = input()

rest = 7-li.index(S)

print(rest)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(4100000)
import math
INF = 10**9

def main():
    S = input()

    weeks = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    for i in range(len(weeks)):
        if weeks[i] == S:
            print(7-i)
            return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if ans == "SUN": print(7)
if ans == "MON": print(6)
if ans == "TUE": print(5)
if ans == "WED": print(4)
if ans == "THU": print(3)
if ans == "FRI": print(2)
if ans == "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()
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 main():
    s = str(input())
    dic = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
    print(dic.get(s))
    
main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s=input()
ans=(6-(["MON","TUE","WED","THU","FRI","SAT","SUN"].index(s)))
if ans==0:
  print(7)
else:
  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:
d = {"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}

s = input()
print(d[s])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
day = input()
# このdayが何番目かを出して7からひく
print(7 - days.index(day))

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

Submission status: Accepted

Solution code:
# 146 A

ent = input()
l = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

for i in range(len(l)):
    if l[i] == ent:
        print(7 - i)

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if S == "SAT":
  print(1)
elif 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(0)

Submission status: Accepted

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

Submission status: Accepted

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

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 = input()
H = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
k = H.index(S)
print(7-k)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    s = input()
    days = ['','SAT','FRI','THU','WED','TUE','MON','SUN']
    print(days.index(s))
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def solve():
    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__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(7 - ans.index(s))

Submission status: Accepted

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

n = W.index(S)

print(7 - n)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

def main():
    S = input()
    week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    print(7-week.index(S))
    
if __name__ == "__main__":
    main()

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:
d = dict(zip( ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN'], '6543217'))
s = input()
print(d[s])

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

'''

'''

s = input().rstrip()

if s == "MON": print(6)
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)
else:
    print(7)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(day_of_the_week.index(S) + 1)

Submission status: Accepted

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

Submission status: Accepted

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