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):
print('  SAFRTHWETUMOSU'.find(input()[:2])//2)

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):
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):
print('SAFRTHWETUMOSU'.find(input()[:2])//2+1)

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

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

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

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

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

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

s = input()





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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys



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


def main():
	s=input()
	wd = weeks.index(s)
	return 7 - wd
	

isTest=False

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

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

Solution (Python):
name = input()

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

Solution (Python):
strDay = input()

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

ans = 0

if strDay in day_dict:
	ans = day_dict[strDay]

print(ans)

Solution (Python):
S = input()

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

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

Solution (Python):
day = input()

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

index = target.index(day)

print(7-index)

Solution (Python):
s = raw_input()

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

print dict[s]

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

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

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

Solution (Python):
a = input()

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

Solution (Python):
s = input()

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

print(s2dict[s])

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

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

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

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

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

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

Solution (Python):
a = dict()

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

print(a[input()])

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

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

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

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

print(7-week.index(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):
x = input()
ls = ['SUN', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON']
day = ls.index(x)
if not day == 0:
    print(day)
else:
    print(7)

Solution (Python):
from heapq import heappush,heappop,heapify
from collections import deque,defaultdict,Counter
import itertools
from itertools import permutations,combinations
import sys
import bisect
import string
import math
import time

def I():
    return int(input())
def MI():
    return map(int,input().split())
def LI():
    return [int(i) for i in input().split()]
def LI_():
    return [int(i)-1 for i in input().split()]
def StoI():
    return [ord(i)-97 for i in input()]
def ItoS(nn):
    return chr(nn+97)
def show(*inp,end='\n'):
    if show_flg:
        print(*inp,end=end)
YN=['Yes','No']
mo=10**9+7
inf=float('inf')
l_alp=string.ascii_lowercase
u_alp=string.ascii_uppercase
ts=time.time()

input=lambda: sys.stdin.readline().rstrip()

show_flg=False


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

s=input()

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

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

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

Solution (Python):
print("SATFRITHUWEDTUEMONSUN".index(input())//3+1)

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


ans = 7 - week.index(s)


print(ans)

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

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

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

S = input()

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

print(answer)

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

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

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

Solution (Python):

s = input()

day = 0

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

print(day)

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

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

Solution (Python):
A = list(reversed(["SUN","MON","TUE","WED","THU","FRI","SAT"]))
s = input()
ans = A.index(s)
print(ans+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')
else :
  pass

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


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


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


if __name__ == "__main__":
    main()

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

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

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

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

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

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

Solution (Python):
from sys import stdin


def main():
    S = input()

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


if __name__ == "__main__":
    main()

Solution (Python):
s = input()

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline



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

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


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

    solver = Solver()
    solver.solve(S)


if __name__ == "__main__":
    main()

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

print(7 - weekday.index(x))

Solution (Python):
S=input()

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

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

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

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

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

Solution (Python):

import sys
read = sys.stdin.readline


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


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


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


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


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

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

    return ret


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

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

answer = dic[S]
print(answer)

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

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

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

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

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

Solution (Python):
s=input()

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

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

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

Solution (Python):






from sys import stdin,setrecursionlimit







setrecursionlimit(10**6)
input=stdin.readline

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

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

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

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

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

print(ans)

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

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

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

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

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

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

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

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

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

Solution (Python):


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

    S = input()
    count = 0 

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

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

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

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



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

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

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
elif S=="SAT":
    ans=1

print (ans)

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

print(num)

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

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

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

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

Solution (Python):

S = str(input())

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

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

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


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

    


if __name__ == '__main__':
    main()

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

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

S = input()

print(week.index(S) + 1)

Solution (Python):
s = input()		


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

print(X[S])

Solution (Python):

import sys
from itertools import product
from collections import Counter, defaultdict

def inpl(): return list(map(int, input().split()))

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

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

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


if __name__ == "__main__":
    main()

Solution (Python):

n=input()


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

print(ans)

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

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

    day_num = days.index(day)

    print(7 - day_num)


main()

Solution (Python):
S = input()

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

print(8-Today[S])

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

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

print(7 - days.index(s))

Solution (Python):
input_day = input()

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

print(day_dict[input_day])

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

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

a = input()

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

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

Solution (Python):
s = input()

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

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

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

print(7 - days.index(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):
S = str(input())
Week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i, day in enumerate(Week):
  if day == S:
    until = 7 - i
    print(until)
  else:
    pass

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

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

Solution (Python):

s = input()

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

print(7-a.index(s))

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

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

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

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

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

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)