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

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

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

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

dic = { "SUN":7, "MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1}
print(dic.get(inp))

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

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

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

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):
s = input()
r = ['SUN','MON','TUE','WED','THU','FRI','SAT']

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

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

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

Solution (Python):
S = input()

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

print(7 - l.index(S))

Solution (Python):
s=input()


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

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 for i, x in enumerate(weekday)}
print(dic[S])

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

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

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

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

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

b = input()

for i, c in enumerate(a):
  if c == b:
    break
ans = ((7 - i) % 7) or 7
print(ans)

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

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

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

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

input_day = input()
for d in days:
  if input_day == d:
    print(7 - days.get(d))
    break

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

input_day = input()
for d in days:
  if input_day == d:
    print(7 - days.get(d))
    break

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

Solution (Python):
S = input()

L = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
u = 0
for i in range(7):
  if S == L[i]:
    u = i
print(7 - u)

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

print(ans)

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

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


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
s = input()

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

print(7-weekdays.index(s))

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

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

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

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

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

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

print(week_list.index(input()) + 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()
a = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
i = 0
for num,day in enumerate(a):
  if s == day:
    i = 7 - num

print(i)

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")
else:
  print("入力ミスです")

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

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

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

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

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

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="SUN,MON,TUE,WED,THU,FRI,SAT".split(',')
d=list(range(7,0,-1))
m=dict(zip(s,d))

print(m[input()])

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

Solution (Python):
DAYS = {x.strip():i for i, x in enumerate("SUN, MON, TUE, WED, THU, FRI, SAT".split(","))}
S = input().strip()
L = 7 - DAYS[S]
if L == 0:
  L+= 7
print(L)

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

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

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

Solution (Python):
dayss = input()
days = ['SAT','FRI','THU','WED','TUE','MON','SUN']
for i,day in enumerate(days):
    if day == dayss:
      print(str(i+1))

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

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

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

Solution (Python):
S = input()

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

print(dayMap[S])

Solution (Python):
import sys

read = sys.stdin.buffer.read
input = sys.stdin.buffer.readline
inputs = sys.stdin.buffer.readlines



























def main():
	s=input().rstrip().decode('utf-8')
	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)
	
	
	
	







if __name__ == "__main__":
		main()

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


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

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

    print(7 -WEEK.index(S))


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):
def nextsunday():
  S = input()
  if S == 'SUN':
    print('{}'.format(7))
  if S == 'MON':
    print('{}'.format(6))
  if S == 'TUE':
    print('{}'.format(5))
  if S == 'WED':
    print('{}'.format(4))
  if S == 'THU':
    print('{}'.format(3))
  if S == 'FRI':
    print('{}'.format(2))
  if S == 'SAT':
    print('{}'.format(1))

nextsunday()

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

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

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

n = Week.index(S)
print(7-n)

Solution (Python):
S = input()

l = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
ans = l.index(S)+1
print(ans)

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

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

Solution (Python):
import sys

number_days_next_sunday = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}
weekday = input()

if weekday not in number_days_next_sunday:
    sys.exit(1)
    
print(number_days_next_sunday[weekday])

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

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

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

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

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

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

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

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

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

len = data.index(s)

print(7 - len)

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 I(): return int(input())


def IsIl(): return list(map(lambda x: int(x), input().split()))


def InIl(n): return [input() for i in range(n)]


def IsIt(): return map(lambda x: int(x), input().split())


def InIl(n): return map(input() for i in range(n))


def SsSl(): return list(map(lambda x: x, input()))




def SSd():
    from collections import defaultdict
    A = input() 
    dd=defaultdict(int)
    for a in A:
        dd[a]+=1
    return dd







day = input()

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

print(day_lis[day])

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

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

Solution (Python):


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


if __name__ == "__main__":
    solve()

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

Solution (Python):
d = {"SUN":1,"MON":2,"TUE":3,"WED":4,"THU":5,"FRI":6,"SAT":7}
print(8-d[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()
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 = ['SUN','MON','TUE','WED','THU','FRI','SAT']
day_num = 0
for num,day in enumerate(week):
    if S == day:
        day_num = 7 - num
        
print(day_num)

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

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

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

Solution (Python):

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

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

Solution (Python):
day = input()

if day == 'SUN' :
    print (7)

if day == 'MON' :
    print (6)

if day == 'TUE' :
    print (5)

if day == 'WED' :
    print (4)

if day == 'THU' :
    print (3)

if day == 'FRI' :
    print (2)

if day == '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()
c=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(len(c)):
    if c[i]==s:
        print(7-i)
        exit()

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

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

S = input()

next_sunday = 7 - week.index(S)

print(next_sunday)

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")
else:
    print("無効な入力です")

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

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

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


if __name__ == '__main__':
    main()

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

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

Solution (Python):
S = input()

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

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

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

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

Solution (Python):

hash = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2,'SAT':1}
s = input()
print(hash[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 = ['SUN','MON','TUE','WED','THU','FRI','SAT'][::-1]
dic = {d:i+1 for i,d in zip(range(len(day)),day)}
print(dic[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):
next_sun = {
    'SUN':7,
    'MON':6,
    'TUE':5,
    'WED':4,
    'THU':3,
    'FRI':2,
    'SAT':1
}

to_SUN = next_sun[input()]

print(to_SUN)

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

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

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

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

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

print(7-L.index(S))

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

Solution (Python):
S=input()

yobi=['SUN','MON','TUE','WED','THU','FRI','SAT']
for i,y in enumerate(yobi[::-1]):
  if y==S:
    print(i+1)
    break

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

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

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

Solution (Python):
s = input()

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

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

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):
yobi = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
yobi.reverse()
s = input()
for i in range(7):
  if s == yobi[i]:
    print(i+1)

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

Solution (Python):
day=input()

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

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

print(weekDays[S])

Solution (Python):
s = input()

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

print(7-l.index(s))

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

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

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

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

Solution (Python):

s = input()

WEEKDAYS=['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
integer_day = WEEKDAYS[::-1].index(s) + 1
print(integer_day)

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

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

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

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

print(7 - lis.index(S))

Solution (Python):
def main():
  S = input()
  day = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
  count = 7
  for i in day:
    if S == i:
        print(count)
    count -= 1

if __name__ == '__main__':
  main()

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

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

print(7 - l.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)
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)
else:
    print("ERROR")

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

s = input()

print(d[s])

Solution (Python):


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

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

Solution (Python):

import sys


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



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  
    solve(S)

if __name__ == '__main__':
    main()

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

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

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

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