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

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

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

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

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

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

print(7 - li.index(S))

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

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

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

if arg1 == "SUN":
    print("7")
elif arg1 == "MON":
    print("6")
elif arg1 == "TUE":
    print("5")
elif arg1 == "WED":
    print("4")
elif arg1 == "THU":
    print("3")
elif arg1 == "FRI":
    print("2")
elif arg1 == "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):
d = input()

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

print(days[d])

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

print(7 - week.index(today))

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

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

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

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

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

print(7-A.index(S))

Solution (Python):
S = input()

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

print(youbi[S])

Solution (Python):
S = input()

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

print(mp[S])

Solution (Python):

import sys
import math
from bisect import bisect_left
from bisect import bisect_right
import collections
import copy
import heapq
from collections import defaultdict
from heapq import heappop, heappush
import itertools
input = sys.stdin.readline
 



 




 


 





 


 
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    ans = {
    "SUN": 7,
    "MON": 6,
    "TUE": 5,
    "WED": 4,
    "THU": 3,
    "FRI": 2,
    "SAT": 1
    }
    S = input()
    S = S[:-1]
    
    print(ans[S])
    
    
if __name__ == "__main__":
	main()

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

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

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

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().strip()
d={k:i for i,k in zip(range(7,0,-1),"SUN,MON,TUE,WED,THU,FRI,SAT".split(","))}
print(d[S])

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

num = days.index(today)
num = num%7
nextsun = 7-num
print(nextsun)

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

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

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):
A = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
S = input()
cnt = 0
for i in range(7):
    if A[i] == S:
        break;
    cnt += 1
print(7 - cnt)

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

for i in range(7):
    if x == lst[i]:
        print(7-i)
        break

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

s = input()

print(result[s])

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

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

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

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

Solution (Python):



a=input()
if a=="SAT":
    print("1")
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")

Solution (Python):

import sys

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

s = input()

if s in daylist:
    a = daylist.index(s)
    print(7 - a)
else:
    print("{} is not day of week".format(s))

Solution (Python):

day = input()


if day == "MON":
  answer = 6
  
if day == "TUE":
  answer = 5
if day == "WED":
  answer = 4
if day == "THU":
  answer = 3
if day == "FRI":
  answer = 2
if day == "SAT":
  answer = 1
if day == "SUN":
  answer = 7

print(answer)

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

print(dic[input()])

Solution (Python):
s = input()

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

index = days.index(s)

print(7 - index)

Solution (Python):
yobi = ['SUN','MON','TUE','WED','THU','FRI','SAT']
tugi = [7,6,5,4,3,2,1]
S = input()
print(tugi[(yobi.index(S))])

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

Solution (Python):
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
days = reversed(days)
days = {day:i+1 for i, day in enumerate(days)}

print(days[input()])

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

for i in range(6):
    if S==L[i]:
        ans=6-i

if ans==0:
    print(7)
else:
    print(ans)

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

print(days[S])

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

S = input()

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

Solution (Python):
i = input()

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

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

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

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


data = input()

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

Solution (Python):
def main():
  weeks = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}
  today = input()
  print (weeks[today])
    
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):
from sys import stdin

S = input()
Day =  ['SAT','FRI','THU','WED','TUE','MON','SUN']
print(Day.index(S)+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()
lst = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7 if 7 - lst.index(S) == 0 else 7 - lst.index(S))

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

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

for index, day in enumerate(week):
  if s == day:
    print(7-index)

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

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

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

if s == 'SUN':
    print 7
else:
    idx = days.index(s) + 1
    print 7 - idx

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

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

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

Solution (Python):
s = input()

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

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

Solution (Python):
s = input()

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

if s != 'SUN':
  print(7 - dict.index(s))
else:
  print(7)

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

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

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

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

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

Solution (Python):
a = ["SUN","MON","TUE","WED","THU","FRI","SAT"][::-1]
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)
elif S == "SAT":
    print(1)
else:
    print("error!")

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

print(7-DAY.index(S))

Solution (Python):
s = input()

l = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
t = list(reversed(l))


for i in range(0, len(l)):
    if t[i] == s:
        print(i+1)
        exit()

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

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

Solution (Python):
if __name__ == '__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)

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(19):
	if week[i]==s:
		print(7-i)
		exit()

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

i1 = day.index(s)
i2 = 7 - i1
if i2 == 0:
  i2 = 7

print(i2)

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

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

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

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

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

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

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

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

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

Solution (Python):
today = input()

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

print(ans)

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

Solution (Python):
input_line = input()

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

Solution (Python):
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    d = {v: 7 - i for i, v in enumerate("SUN,MON,TUE,WED,THU,FRI,SAT".split(","))}
    print(d[str(readline().rstrip().decode('utf-8'))])


if __name__ == '__main__':
    solve()

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

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

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

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

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

print(hoge.get(s))

Solution (Python):
a = input()
days = ("MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN")
count = 6
for index, value in enumerate(days):
    if a == "SUN":
        count = 7
    elif (a == value):
        count -= index
print(count)

Solution (Python):
import sys
sys.setrecursionlimit(10000000)







INF = float('inf')
MOD = 10**9+7

S = 'SUN,MON,TUE,WED,THU,FRI,SAT'.split(',')
print(7-S.index(input()))

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

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

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

S=str(input())
print(week[S])

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

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

Solution (Python):
import sys

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

    sys.exit()

main()

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

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':0,
'MON':1,
'TUE':2,
'WED':3,
'THU':4,
'FRI':5,
'SAT':6
}
print(7-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')
else:
    print('No data')

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

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

s = input()

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

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

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

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

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

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

i = input()

print(d[i])

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

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

Solution (Python):
def solve(s: str) -> int:
    if s == 'SUN':
        return 7
    elif s == 'MON':
        return 6
    elif s == 'TUE':
        return 5
    elif s == 'WED':
        return 4
    elif s == 'THU':
        return 3
    elif s == 'FRI':
        return 2
    elif s == 'SAT':
        return 1


s = input().strip()
print(solve(s))

Solution (Python):
def solve(s: str) -> int:
    if s == 'SUN':
        return 7
    elif s == 'MON':
        return 6
    elif s == 'TUE':
        return 5
    elif s == 'WED':
        return 4
    elif s == 'THU':
        return 3
    elif s == 'FRI':
        return 2
    elif s == 'SAT':
        return 1


s = input().strip()
print(solve(s))

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

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

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

Solution (Python):
import sys
import math
from itertools import permutations
from itertools import combinations


sys.setrecursionlimit(10**7)
S = input()

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

print(7-l.index(S))

Solution (Python):
s = input()

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

for i, day in enumerate(days):
    if s == day:
        print(7 - i)

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)

else:
    print(1)

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

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

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

Solution (Python):
s = input()

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

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

print(WEEKS.get(WEEK))

Solution (Python):
n = input()

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

for i, d in enumerate(day_of_the_week):
  if d == n:
    print(i)

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

Solution (Python):
usrInput = input()

if usrInput == "SUN":
    DayPlace = 0
elif usrInput == "MON":
    DayPlace = 1
elif usrInput == "TUE":
    DayPlace = 2
elif usrInput == "WED":
    DayPlace = 3
elif usrInput == "THU":
    DayPlace = 4
elif usrInput == "FRI":
    DayPlace = 5
elif usrInput == "SAT":
    DayPlace = 6

finalOutput = 7 - DayPlace
print(finalOutput)

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


main()

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

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

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