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

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

for i in range(len(week)):
    if (S == 'SUN'):
        print(7)
        break
    elif (S == week[i]):
        print(6-i)

Submission status: Accepted

Solution code:
import math
import sys

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

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

Submission status: Accepted

Solution code:
S = input()

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

day = 7

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

Submission status: Accepted

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

cnt = 0

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

Submission status: Accepted

Solution code:
s = input()

if s == "SAT":
    print(1)
elif s == "SUN":
    print(7)
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()
a=0
if S=='SUN':
    a=7
elif S=="MON":
    a=6
elif S=='TUE':
    a=5
elif S=="WED":
    a=4
elif S=='THU':
    a=3
elif S=="FRI":
    a=2
else:
    a=1

print(a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import unittest


class TestA(unittest.TestCase):
    def test_1(self):
        self.assertEqual(think('SAT'), 1)

    def test_2(self):
        self.assertEqual(think('SUN'), 7)


def solve():
    s = read()
    result = think(s)
    write(result)


def read():
    return read_line()


def read_int(n):
    return read_type(int, n)


def read_float(n):
    return read_type(float, n)


def read_type(t, n):
    return list(map(lambda x: t(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(data):
    weekday = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    return len(weekday) - weekday.index(data)


def write(result):
    print(result)


if __name__ == '__main__':
    # unittest.main()
    solve()

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

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

n = day.index(S)

print(7 - n)

Submission status: Accepted

Solution code:
S = input()

if S =='SUN':
  print(int(7))

elif S =='MON':
  print(int(6))

elif S =='TUE':
  print(int(5))

elif S =='WED':
  print(int(4))

elif S =='THU':
  print(int(3))

elif S =='FRI':
  print(int(2))

elif S =='SAT':
  print(int(1))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
today = input()
index = 0
for i in range(7):
    if days[i] == today:
        index = i
        break
if index == 0:
    print(7)
else:
    print(7-index)

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

S = input()
a_list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
# a_list = list(reversed(a_list))
c = 0
for a in a_list:
    c += 1
    if S == a:
        ans = 7 - c + 1

print(ans)

Submission status: Accepted

Solution code:
d = input()

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
w = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1} 
i = input()
print(w[i])

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

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 days[i] == S:
        print(7 - i)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**9)
INF=10**18
def input():
    return sys.stdin.readline().rstrip()

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

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

Submission status: Accepted

Solution code:
d=['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
msg=input()
for i,it in enumerate(d):
    if it==msg:
        break
print(7-i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
''' 
------------------------
author : iiou16
------------------------
'''

def main():
    S = input()
    youbi = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
t = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
i = t.index(S)
if i == 0:
    print(7)
else:
    print(6-i+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()

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

for i in range(7):
    if D[i] == S:
        day = 7 - i
        break

print(day)

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 == "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:
D=['SUN','MON','TUE','WED','THU','FRI','SAT']
S=str(input())
for i in range(7):
  if S==D[i]:
    print(7-i)
    break

Submission status: Accepted

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

Submission status: Accepted

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

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 = 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=input()
w=["SUN","MON","TUE","WED","THU","FRI","SAT" ]
for n,i in enumerate(w):
    if s == i:
        print((7-n))
        break

Submission status: Accepted

Solution code:
input_line=input()

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

print (day_dict[input_line])

Submission status: Accepted

Solution code:

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

S = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
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)
if a=='SUN':
    print(7)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

idx=0
for i in range(len(day)):

    if S==day[i]:
        idx=i

print(7-idx)

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 - Can't Wait for Holiday
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:
#%%
import sys
def input():
    return sys.stdin.readline().rstrip()

def main():
    S=input()

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

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


# %%
if __name__ == '__main__':
    main()

# %%
# from atcoder_test import doTest
# doTest("abc146","a",main)

Submission status: Accepted

Solution code:
N = input()
if N[0] == "M":
    print(6)
elif N[0] == "F":
    print(2)
elif N[0] == "W":
    print(4)
elif N[0] == "T":
    if N == "THU" :
        print(3)
    else:
        print(5)
else:
    if N == "SUN" :
        print(7)
    else:
        print(1)

Submission status: Accepted

Solution code:
# coding UTF-8
# 
# problem A
# 

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
s=input()

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

for i in range(len(L)):
    if L[i]==s:
        print(7-i)

Submission status: Accepted

Solution code:
S=raw_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 = input()
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI','SAT']
i = days.index(a)
print(7-i%7)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(7 - youbi.index(S))

Submission status: Accepted

Solution code:
S = input()

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

print(day_dict[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:
S = input()
w = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
for i in range(7):
    if S == w[i]:
        print(7-i )

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
lst = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
lst = lst[::-1]
for i ,val in enumerate(lst):
    if val == S:
        print(i + 1)
        exit()

Submission status: Accepted

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



if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
s = [0,'SAT','FRI','THU','WED','TUE','MON','SUN']
S = input()
for i in range(len(s)):
    if S == s[i]:
        print(i)
    else:
        continue

Submission status: Accepted

Solution code:

S = input()
slst = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
tmp = slst.index(S) + 1
if 7 == tmp:
    print(7)
else:
    print(7 - tmp)

Submission status: Accepted

Solution code:
#n  = int(input())
#a = list(map(int,input().split()))
s = input()
ans = 0
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:
s = input()
r = 0
if s == 'SUN':
    r = 7
elif s == 'MON':
    r = 6
elif s == 'TUE':
    r = 5
elif s == 'WED':
    r = 4
elif s == 'THU':
    r = 3
elif s == 'FRI':
    r = 2
elif s == 'SAT':
    r = 1
print(r)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

if n=='SUN':
  print(7)
elif n == 'SAT':
  print(1)
elif n == 'FRI':
  print(2)
elif n == 'THU':
  print(3)
elif n == 'WED':
  print(4)
elif n == 'TUE':
  print(5)
elif n=='MON':
  print(6)#, MON, TUE, WED, THU, FRI, or SAT.

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

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:
val = input()
if(val == 'SUN'):
    print(7)
elif(val == 'MON'):
    print(6)
elif(val == 'TUE'):
    print(5)
elif(val == 'WED'):
    print(4)
elif(val == 'THU'):
    print(3)
elif(val == 'FRI'):
    print(2)
elif(val == 'SAT'):
    print(1)

Submission status: Accepted

Solution code:
s=input()
L=["A","SAT","FRI","THU","WED","TUE","MON","SUN"]
for l in L:
  if s==l:
    print(L.index(l))

Submission status: Accepted

Solution code:
import math

a = input()

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

print(b[a])

Submission status: Accepted

Solution code:
youbi = ['MON','TUE','WED','THU','FRI','SAT','SUN']
s = input()
ans = 7-youbi.index(s)-1
if ans != 0: print(ans)
else: print(7)

Submission status: Accepted

Solution code:

def main():
    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
    else:
        ans = 1
    print(ans)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
import numpy as np
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:
#  --*-coding:utf-8-*--

def main():
    N = {'SUN':7, 'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    W = input()
    print(N[W])


if __name__ == '__main__':
    main()

Submission status: Accepted

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

i = input()

print(dic[i])

Submission status: Accepted

Solution code:
def main():
    s = input()
    week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    ans = 0
    for i, w in enumerate(week):
        if w == s:
            ans = 7 - i
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import logging

logging.basicConfig(level=logging.INFO, format="%(message)s")
#logging.disable(logging.CRITICAL)

def main():
    S = input()
    logging.info("Hello!")

    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:
a = str(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:
t = ['SUN','MON','TUE','WED','THU','FRI','SAT']

S = input()
s = t.index(S)

for i in range(1, 8):
  if t[(s + i) % 7] == 'SUN':
    print(str(i))

Submission status: Accepted

Solution code:
S = input()

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

print(len(week)-week.index(S))

Submission status: Accepted

Solution code:
s = input()


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


x = s_l.index(s)

print(7-x)

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()
x = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
ans = 7
for i in range(7):
    if x[i] == s:
        break
    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:
import sys
input = sys.stdin.readline

_s = input()[:-1]

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

print(week[_s])

Submission status: Accepted

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

for i, day in enumerate(DAYS):
  if S==day:
    print(i+1)

Submission status: Accepted

Solution code:
S = str(input())

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

for i in range(8):
  if youbi[i]==S:
    print(i)

Submission status: Accepted

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

for i in range(7):
	if s == S[i]:
		print(7-i)
		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)
else:
    print(1)

Submission status: Accepted

Solution code:
S = input()
a = S[0]

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

Submission status: Accepted

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]

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

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

if day == "SUN":
    print(7)
else:
    for i in range(7):
        if day == week[i]:
            print(str(6-i))

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ns = lambda : stdin.readline().rstrip()
ni = lambda : int(ns())
na = lambda : list(map(int, stdin.readline().split()))
sys.setrecursionlimit(10 ** 7)

def main():
  s = ns()

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

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

print(w[s])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = (input().strip())
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:
days = 'SUN MON TUE WED THU FRI SAT'.split()

s = input()

print(7 - days.index(s))

Submission status: Accepted

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

Submission status: Accepted

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

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