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

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

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

print(7-ls.index(s))

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

Solution (Python):
from sys import stdin
S = stdin.readline().rstrip()
dic = {'SUN':0, 'MON':1, 'TUE':2, 'WED':3, 'THU':4, 'FRI':5, 'SAT':6}
print(7-dic[S])

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

print(week[d])

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

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

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

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

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

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

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


res = 7 - vD.index(S)

print(res)

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

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

ans = week[S]

print(ans)

Solution (Python):
s = input()

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

print(l.index(s)+1)

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

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

Solution (Python):


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

S = input()

n = daystr.index(S)

print("{}".format(7-n))

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

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

Solution (Python):
weeks = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s = input()
for i,w in enumerate(weeks):
	if w ==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)
    else:
        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)
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):
print(-sum(map(ord,input()))**236%6133%8)

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

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

judge =0

for i in range(len(list_aaa)):
    if list_aaa[i] ==S:
        judge=(7-i)

print(judge)

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

Solution (Python):
a = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
s = input()
print(a.index(s) + 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=str(input())
w=['SUN','MON','TUE','WED','THU','FRI','SAT']
x=7-w.index(s)
print(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)
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()
L = ['SUN','MON','TUE','WED','THU','FRI','SAT']
for i in range(7):
    if S == L[i]:
       print(7 - i)

Solution (Python):

S = input()
a = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
a.reverse()
ans = a.index(S) + 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):
import sys
printn = lambda x: sys.stdout.write(x)
inn = lambda : int(input())
inl   = lambda: list(map(int, input().split()))
inm   = lambda:      map(int, input().split())
DBG = True 

def ddprint(x):
  if DBG:
    print(x)

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

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

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

print(dic[s])

Solution (Python):
S = input()

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

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

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

print(a[d])

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

s = input()

print(next_sun[s])

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

a = input()

print(7-s.index(a))

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

print(7-T.index(S))

Solution (Python):


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

Solution (Python):
print((sum(map(ord,input()))+9)**49%9133%8)

Solution (Python):
s = input()

dayweek = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(len(dayweek) - dayweek.index(s))

Solution (Python):
print(sum(map(ord,input()+'\n'))**698%6329%8)

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

for i in week:
  if i == S:
    print(7 - counter)
    break
  counter+=1

Solution (Python):
S = input()

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

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

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

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

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

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

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

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

S = raw_input()

print Day[S]

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

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

Solution (Python):
today = input()

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

Solution (Python):
d = {"SU":7, "MO":6, "TU":5, "WE":4, "TH":3, "FR":2, "SA":1}
print(d[input()[:2]])

Solution (Python):


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

str = input()

print(week[str])

Solution (Python):
s=input()

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

print(dic[s])

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()
DAY_OF_WEEK = ('SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT')

for i, day_of_week in enumerate(DAY_OF_WEEK):
	if(day_of_week == S):
		print(7-i)
		break

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

Solution (Python):
s = input()

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

print(week[s])

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

    print(W.index(S)+1)

if __name__ == '__main__':
    main()

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

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

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

print(7 - dic[S])

Solution (Python):
s = input()

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

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

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

if __name__ == "__main__":
    main()

Solution (Python):
s = input()

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

print(holiday_d[s])

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

Solution (Python):
s = input()

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

print(7 - li_w.index(s))

Solution (Python):
r=['SUN','SAT','FRI','THU','WED','TUE','MON']
s=raw_input()
x=r.index(s)
if x==0:
    print 7
else:
    print x

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

Solution (Python):
S= str(input())
l = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
i=7
for w in l:
    if w == S:
        print(i)
    else:
        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)
elif S=='SAT':
  print(1)

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

print(dic[S])

Solution (Python):


S = input()

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

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

print(a[input()])

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

S = input()
print(7 - D.index(S))

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

Solution (Python):
s = input()

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

Solution (Python):
S = input()
S_list = ['SAT','FRI','THU','WED','TUE','MON','SUN']
for i, j in enumerate(S_list):
  if S == j:
    print(i+1)

Solution (Python):
s = input()
if s[0] == "M":
  print(6)
elif s[:2] == "TU":
  print(5)
elif s[0] == "W":
  print(4)
elif s[0] == "T":
  print(3)
elif s[0] == "F":
  print(2)
elif s[:2] == "SA":
  print(1)
else:
  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):
print(7-["SUN","MON","TUE","WED","THU","FRI","SAT"].index(input()))

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

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

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

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

Solution (Python):
s = input()

days = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
if s == 'SUN':
    print(7)
else:
    print(6 - days.index(s))

Solution (Python):
i = str(input())
day = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']

if i == 'SUN':
    print(7)
else:
    print(len(day) - day.index(i) - 1)

Solution (Python):
print({'SA':1,'FR':2,'TH':3,'WE':4,'TU':5,'MO':6,'SU':7}[input()[:2]])

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

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

i = l.index(S)
print(7-i)

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

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

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

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

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

for cnt,_ in enumerate(reversed(S),1):
    if _ == s:
        print(cnt)

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

for cnt,_ in enumerate(reversed(S),1):
    if _ == s:
        print(cnt)

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

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

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

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

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

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

ans = (7 - week_list.index(S))

print(ans)

Solution (Python):


import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop

def main():
    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)
    
if __name__ == '__main__':
    main()

Solution (Python):
stdin = input()

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

num_of_today = days[stdin]
days_until_next_sun = 7 - num_of_today

print(str(days_until_next_sun))

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

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

for ind, day in enumerate(week):
  if day == S:
    print(7 - ind)
    break;

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

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

print(int(l.index(day)) + 1)

Solution (Python):
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
mod2 = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

s = input()
t = ['SAT','FRI','THU','WED','TUE','MON','SUN']
for i in range(7):
    if s == t[i]:
        print(i+1)

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

Solution (Python):
hoge=input()
if(hoge=="SUN"):print(7)
if(hoge=="MON"):print(6)
if(hoge=="TUE"):print(5)
if(hoge=="WED"):print(4)
if(hoge=="THU"):print(3)
if(hoge=="FRI"):print(2)
if(hoge=="SAT"):print(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):
s = input()
 
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']
 
 
if s == 'SUN':
  print(7)
  exit()
else:
  print(7 - a.index(s))

Solution (Python):
import numpy as np
s = input()
slist = np.array(['SUN','MON','TUE','WED','THU','FRI','SAT'])
i = np.where(slist==s)[0][0]

print(7-i)

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

Solution (Python):
days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
dic = {}
for i, d in enumerate(days):
  dic[d] = i
  
S = input()

if dic[S] == 6:
  print(1)
else:
  print(7-dic[S])

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

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

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

print(li.index(d) + 1)

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

print(wday[input()])

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

Solution (Python):
a=['SUN','MON','TUE','WED','THU','FRI','SAT']
d={s:7-i for i,s in enumerate(a)}
print(d[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)
elif S=="SAT":
    print(1)

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

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

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

Solution (Python):
S = list(input())
ans =0
if(S[0]=='S' and S[1] == 'U'):
    ans = 7
elif(S[0]== 'M'):
    ans =6
elif(S[0]== 'T' and S[1] == 'U'):
    ans =5
elif(S[0] == 'W'):
    ans =4
elif(S[0] == 'T' and S[1] == 'H'):
    ans =3
elif(S[0] == 'F'):
    ans =2
else:
    ans =1
print(ans)

Solution (Python):
S = input()

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

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

s = input().strip()

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

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

Solution (Python):

r=['SUN','SAT','FRI','THU','WED','TUE','MON']
s=raw_input()
x=r.index(s)
if x==0:
 print 7
else:
 print x

Solution (Python):
s = input()

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

print(dic[s])

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

s = input()

if s=="SUN":
    print(7)
else:
    print(7-l.index(s))

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

num = 6 - day_list.index(s)
if num == 0:
    print(7)
else:
    print(num)

Solution (Python):
S = input()
date =  ['MON','TUE','WED','THU','FRI','SAT','SUN']
dic = {d:i for i,d in enumerate(date)}

if S == 'SUN': print(7)
else: print(dic['SUN']-dic[S])

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

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):
X = ["SUN","MON","TUE","WED","THU","FRI","SAT","xx"]
X.reverse()

S = input()
print(X.index(S))

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

Solution (Python):
print("SAFRTHWETUMOSU".find(input()[:2])//2+1)

Solution (Python):
print("_ SA FR TH WE TU MO SU".split().index(input()[:2]))

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

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

A()

Solution (Python):
def solve(s):
    return {
        "SUN": 7,
        "MON": 6,
        "TUE": 5,
        "WED": 4,
        "THU": 3,
        "FRI": 2,
        "SAT": 1
    }[s]

s = input()
print(solve(s))

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

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

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

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

Solution (Python):
Date = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', '']
S = input()
for i, d in enumerate(Date[-1::-1]):
    if S == d:
        print(i)
        exit()

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

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

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

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

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

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

Solution (Python):

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

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

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

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('{}'.format(ans))

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

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

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

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