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

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

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

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

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

Solution (Python):

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

print(week_and_toSunday[todays_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()

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

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

Solution (Python):
from sys import stdin

a = stdin.readline().rstrip()

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

print(7-int(week.get(a)))

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

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

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

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

i = days[input()]

if i!=0:
    print(7-i)
else:
    print(7)

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

ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')

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


if __name__ == "__main__":
    main()

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

print(7-D.index(S))

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

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

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

t = s.index(today)
print(7- t)

Solution (Python):
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7
input=lambda:sys.stdin.readline().rstrip()
def resolve():
    S=input()
    D=[None,"SAT","FRI","THU","WED","TUE","MON","SUN"]
    print(D.index(S))
resolve()

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

date = input()
for pair in pairs:
    if pair[0] == date:
        print(pair[1])

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

print(a)

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

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

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

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

print(7 - S.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 = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
s = input()
result = abs(S.index(s)-S.index("SUN"))
if result ==0:
  result = 7
else:
  pass
print(result)

Solution (Python):
S = input()

D_dict = {}
D_dict['SUN'] = 7
D_dict['MON'] = 6
D_dict['TUE'] = 5
D_dict['WED'] = 4
D_dict['THU'] = 3
D_dict['FRI'] = 2
D_dict['SAT'] = 1

print(D_dict[S])

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

a = w.index(S)

print(7 - a)

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

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

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

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

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

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

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)

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

if 6-now == 0:
  print(7)
else:
  print(6-now)

Solution (Python):
S = input()

week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
ans = 7 - week.index(S)

print(ans)

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

S = input()

for j in range(7):
    if W[j] == S:
        print(7-j)

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

Solution (Python):

s = input()


week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
windex = week.index(s)
ans = 7 if windex == 0 else 7-windex


print(ans)

Solution (Python):
day = input()
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
ans = 7;

for i in range(len(week)):
    if day != week[i]:
        ans -= 1
    else:
        break
print(ans)

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

str = input()
num = week.index(str)
if num == 0:
    print("7")
else:
    print(7-num)

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

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

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

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

Solution (Python):
S=input()
l=["SUN","MON","TUE","WED","THU","FRI","SAT"]
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)
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 = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT' ]
val = 0
inp = input()
for i in range(7):
  if (S[i] == inp):
    val = 7 - i
print(val)

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

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

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

Solution (Python):
from collections import Counter

mod = 1000000007


def inverse(a):
    return pow(a, mod - 2, mod)


def usearch(x, a):
    lft = 0
    rgt = len(a) + 1
    while rgt - lft > 1:
        mid = (rgt + lft) // 2
        if a[mid] <= x:
            lft = mid
        else:
            rgt = mid
    return lft

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

def main():
    a = input()
    print(7 - s.index(a))

main()

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

Solution (Python):


week = {'SUN':0, 'MON':1, 'TUE':2 ,'WED':3 ,'THU':4 ,'FRI':5 ,'SAT':6 }
day = input()

print(7 - week[day])

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

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

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

Solution (Python):
s = input()
day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
cnt = -1
ans = 0
for i in day:
    cnt += 1
    if s == i:
        ans = 7 - cnt
        break
print(ans)

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

    print(nextSunday[input()])



mainFunc()

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

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

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

day = input()
print(mapping[day])

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

print(mapping[input()])

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

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

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

str = input()
count = 7

for i in s:
    if str == i:
        break
    else:
        count -= 1

print (count)

Solution (Python):
s = str(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)
else:
    print(6)

Solution (Python):
if __name__ == '__main__':
    S = input()
    d = {'SUN':7, "MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1}
    if d.get(S, False):
        print(d[S])
    else:
        res = -1
        for i in d.keys():
            if i in S or i.lower() in S:
                res = d[i]
                break
        print(res)

Solution (Python):
a = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
S = str(input())
if S == "SUN":
    print(7)
else:
    print(a.index("SUN") - a.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()
day_of_the_week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7 - day_of_the_week.index(S))

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

Solution (Python):
day = input()

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

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

s = input()

print(7-youbi_list.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):
import sys

day = input()

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

print(ans)

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

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

Solution (Python):
s = input()

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

for i, d in enumerate(w):
    if s == d:
        print(7 - i)

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


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

Solution (Python):
def solve(string):
    l = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
    return str(7 - l.index(string.strip()))


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read()))

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

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

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

s = input()

print(7 if s == 'SUN' else days.index('SUN') - days.index(s))

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

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

Solution (Python):
if __name__ == '__main__':

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

	print(7 - A.index(input()))

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

Solution (Python):

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

print(week[S])

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

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

Solution (Python):
s = str(input())
  
if s == 'SAT':
  print('1')
  
elif s == 'FRI':
  print('2')
  
elif s == 'THU':
  print('3')
  
elif s == 'WED':
  print('4')

elif s == 'TUE':
  print('5')
  
elif s == 'MON':
  print('6')

else:
  print('7')

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

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

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

Solution (Python):
def cant_wait (): 
    dzien = input()
    dni_tygodnia = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    for i in range(len(dni_tygodnia)): 
        if dni_tygodnia[i]== dzien: 
            print (len(dni_tygodnia) - i)
        
cant_wait()

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

if a == "SUN":
  tmp = 0
elif a == "MON":
  tmp = 1
elif a == "TUE":
  tmp = 2
elif a == "WED":
  tmp = 3
elif a == "THU":
  tmp = 4
elif a == "FRI":
  tmp = 5
elif a == "SAT":
  tmp = 6
else:
  print("Error")

ans = 7- tmp
print(ans)

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

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

Solution (Python):
week = input()

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

print(7 - ls.index(week))

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

Solution (Python):

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

S = input()

i = 0
for day in week:
    if day == S:
        break
    else:
        i = i + 1

after = 7 - i

print(after)

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

Solution (Python):
def main():
    N = input().rstrip()
    ans = 0
    if N=="SUN":
        ans = 7
    elif N=="MON":
        ans = 6
    elif N=="TUE":
        ans = 5
    elif N == "WED":
        ans = 4
    elif N == "THU":
        ans = 3
    elif N == "FRI":
        ans = 2
    elif N == "SAT":
        ans = 1
    return ans

if __name__ == "__main__":
    ans = main()
    print(ans)

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

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

if s=="SUN":
	ans=7
else:
	while i<len(a):
		if a[i]==s:
			ans=6-i
			break
		i+=1
	
print(ans)

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()
list = ['SUN','MON','TUE','WED','THU','FRI','SAT']
index = 0
for i in list:
    if s == i:
        ans = 7 - index
    index += 1
print(ans)

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

Solution (Python):

import sys
INF = float("inf")


def solve(S: str):
    week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    print((-1-week.index(S)) % 7+1)
    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()
l = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
ans = 7 - l.index(s)
print(ans)

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

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

Solution (Python):
S=input()

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

print(A.index(S)+1)

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

Solution (Python):
S = input()
if S == "SUN":
    num = 0
if S == "MON":
    num = 1
if S == "TUE":
    num = 2
if S == "WED":
    num = 3
if S == "THU":
    num = 4
if S == "FRI":
    num = 5
if S == "SAT":
    num = 6
print("{}".format(7-num))

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

Solution (Python):
day=input()

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

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

Solution (Python):
import sys, os
import collections

MOD = 10 ** 9 + 7

def solve(input_stream):
  table = {
    "SUN": 7,
    "MON": 6,
    "TUE": 5,
    "WED": 4,
    "THU": 3,
    "FRI": 2,
    "SAT": 1
  }

  target = input_stream.readline().strip()
  return [str(table[target])]

def read_ints(input_stream):
  return [i for i in map(int, input_stream.readline().strip().split())]

def read_int(input_stream):
  return int(input_stream.readline().strip())


if __name__ == "__main__":
    outputs = solve(sys.stdin)
    for line in outputs:
      print(line)

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

Solution (Python):



S = str(input())

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

print(7 - day.index(S))

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

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

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

print(7-cmd)

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

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

Solution (Python):
def do_code():
    s = input()
    weekday = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    weekday.reverse()
    i = weekday.index(s)
    print((i + 1) % 8)


if __name__ == "__main__":
    do_code()

Solution (Python):


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

for i in range(len(week)):
    if S == week[i]:
        print(i)

Solution (Python):
S = input()

day =["SUN","MON","TUE","WED","THU","FRI","SAT" ]
counter = 7

for i in day:
  if i == S:
    print(counter)
  counter = counter - 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(7-["SUN","MON","TUE","WED","THU","FRI","SAT"].index(input()))

Solution (Python):
import os

n = input()

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

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

Solution (Python):

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

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

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

inp = input().upper()

print(7-week.index(inp))

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

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

Solution (Python):
S = input()

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

print(s[S])

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

if __name__ == "__main__":
    main()

Solution (Python):

def main(S):
    res = {v: k for k, v in enumerate('SAT FRI THU WED TUE MON SUN'.split(' '))}[S] + 1
    print(res)


if __name__ == "__main__":
    S = input('')
    main(S)

Solution (Python):

def main():
    S = input().rstrip()
    days = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
    dic = {day: 7 - i for i, day in enumerate(days)}
    print(dic[S])


if __name__ == "__main__":
    main()

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

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

print(7-days.index(input))

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

Solution (Python):

x = {}
x['SUN']=7
x['MON']=1
x['TUE']=2
x['WED']=3
x['THU']=4
x['FRI']=5
x['SAT']=6

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

Solution (Python):
s = input()
weekday = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
weekday.reverse()
i = weekday.index(s)
print((i + 1) % 8)

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

Solution (Python):
S=input()

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

Solution (Python):
a = input()
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
ans1 = 0
for i in week:
  if i == a:
    ans1 = week.index(i)
    break
    
print(7-ans1)

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

Solution (Python):
s=input()
if s[0]=="S" or s[0]=="T":
  if s[2]=="E":
    print('5')
  elif s[2]=='U':
    print('3')
  elif s[2]=='T':
    print('1')
  else:
    print('7')
else:
  if s[1]=='R':
    print('2')
  elif s[1]=='O':
    print('6')
  else:
    print('4')

Solution (Python):
A = input()
if 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)
elif A =="SUN":
    print(7)

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

Solution (Python):
S = input()

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

print(7 - days.index(S))

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

for x in range(0,7):
	if days[x] == day:
		print(7-x);

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

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

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

print(7-list.index(s))

Solution (Python):
s = input()

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

print(7-list.index(s))

Solution (Python):

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

if S in week:
    i = week.index(S)
    print(7-i)

Solution (Python):
S = input()

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

print(7 - l.index(S))

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

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

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

Solution (Python):
s = input()

if s == '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)