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.

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

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

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

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

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

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

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

Solution (Python):


S = input()
a_list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

c = 0
for a in a_list:
    c += 1
    if S == a:
        ans = 7 - c + 1

print(ans)

Solution (Python):
d = input()

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

Solution (Python):


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

Solution (Python):


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

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


if __name__ == '__main__':
    main()

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

Solution (Python):
S = input()

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

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

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

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

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

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

S = input()

print(7 - days.index(S))

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

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

Solution (Python):
S = input()

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

print(7-a.index(S))

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

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

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

Solution (Python):


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

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

Solution (Python):
S = input()
t = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
i = t.index(S)
if i == 0:
    print(7)
else:
    print(6-i+1)

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

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

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

print(7-week.index(S))

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

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

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

Solution (Python):


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

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

Solution (Python):
s=input()
w=["SUN","MON","TUE","WED","THU","FRI","SAT" ]
for n,i in enumerate(w):
    if s == i:
        print((7-n))
        break

Solution (Python):
input_line=input()

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

print (day_dict[input_line])

Solution (Python):

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

S = input()

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

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

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

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

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

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

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

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

Solution (Python):

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)

Solution (Python):

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

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

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

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

Solution (Python):





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)

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

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

Solution (Python):
S = input()

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

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

Solution (Python):
s=input()

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

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

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

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

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

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

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

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

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

Solution (Python):
s = input()

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

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

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

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

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

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

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

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

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

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

print(7 - youbi.index(S))

Solution (Python):
S = input()

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

print(day_dict[S])

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

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

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

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

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

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

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

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

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

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



if __name__ == "__main__":
    solve()

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

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

Solution (Python):

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

Solution (Python):


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)

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

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

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

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

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

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

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

Solution (Python):
import math

a = input()

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

print(b[a])

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

Solution (Python):

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

Solution (Python):
s = input()

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

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

Solution (Python):


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

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

i = input()

print(dic[i])

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

Solution (Python):
import logging

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


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

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

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

Solution (Python):
S = input()

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

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

Solution (Python):
s = input()


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


x = s_l.index(s)

print(7-x)

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

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

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

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

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

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

Solution (Python):
S = str(input())

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
s = input()

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

print(w[s])

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

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

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

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

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

Solution (Python):
days = 'SUN MON TUE WED THU FRI SAT'.split()

s = input()

print(7 - days.index(s))

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

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

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

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

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

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

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

Solution (Python):
S = input()

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

print(d.get(S))

Solution (Python):
s = input()

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

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

s_num = s.index(S)
print(7 - s_num)

Solution (Python):



L=['SUN','MON','TUE','WED','THU','FRI','SAT']
S=str(input())
N=L.index(S)
if N==0:
  print(7)
else:
  print(7-N)

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

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

Solution (Python):
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input().rstrip()
index = days.index(s)
for i in range(7):
    ni = (index + i + 1) % 7
    if days[ni] == 'SUN':
        print(i + 1)
        break

Solution (Python):
S=input()

WEEK=['SUN','MON','TUE','WED','THU','FRI','SAT']
index = WEEK.index(S)

print(7-index)

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

Solution (Python):
import sys

sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def solve(inputs):
    s = inputs[0]
    weekly = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    c = 7
    index = None
    for i in range(len(weekly)):
        if s == weekly[i]:
            return c - i


def string_to_int(string):
    return list(map(lambda x: int(x), string.split()))


if __name__ == "__main__":
    ret = solve(inputs(1))
    print(ret)

Solution (Python):
s=input()

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

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

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

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

Solution (Python):
s=input()
if s=='SAT':
  print(1)
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=='SUN':
  print(7)

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

Solution (Python):
import sys
sys.setrecursionlimit(1000000000)
ii = lambda: int(input())
mis = lambda: map(int, input().split())
lmis = lambda: list(mis())
mlmis = lambda: [-int(x) for x in input().split()]
INF = float('inf')


def main():
    d = 'SUN,MON,TUE,WED,THU,FRI,SAT'.split(',')
    i = d.index(input())
    print(7-i)

main()

Solution (Python):

from collections import deque
import sys
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = lambda *something : print(*something) if DEBUG else 0
DEBUG = True

def main(given = sys.stdin.readline):
    input = lambda : given().rstrip()
    LMIIS = lambda : list(map(int,input().split()))
    II = lambda : int(input())
    XLMIIS = lambda x : [LMIIS() for _ in range(x)]


    s = input()

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




if __name__ == '__main__':
    main()

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

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

Solution (Python):

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

target = input()

for i in range(7):
    if list[i] == target:
        out = 7-i
        break
print(out)

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

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

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