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

Solution (Python):
s=input()
if 'SU' in s:
  print('7')
if 'MO' in s:
  print('6')
if 'TU' in s:
  print('5')
if 'WE' in s:
  print('4')
if 'TH' in s:
  print('3')
if 'FR' in s:
  print('2')
if 'SA' in s:
  print('1')

Solution (Python):
s = input()

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

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

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

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

from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


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


def main():
    solve()


if __name__ == '__main__':
    main()

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

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

Solution (Python):


wd = "SUN MON TUE WED THU FRI SAT".split()
wd = list(reversed(wd))

def solve(S: str):
    idx = wd.index(S)
    return idx+1


def main():
    S = input().strip()
    answer = solve(S)
    print(answer)

if __name__ == '__main__':
    main()

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

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

n = input()

if n == 'SUN':
    print(7)
else:
    print(6 - li.index(n))

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']
n = week.index(s)

print(7-n)

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

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

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

Solution (Python):
s = input()

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

idx = week.index(s)
print(7-idx)

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

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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

s = input()

i = list.index(s)
answer = 7 - i

print(answer)

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

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

Solution (Python):

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

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

Solution (Python):
S = input()


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

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

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

Solution (Python):


s=input()

if s=="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()
L=['SUN','MON','TUE','WED','THU','FRI','SAT']

print(7-L.index(s))

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

S = input()

print(7 - yobi.index(S))

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

S = input()

print(7 - yobi.index(S))

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

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

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

Solution (Python):
s = input()

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

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

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

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

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

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

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

current_day = input()

i = 0

while True:
    if days[i] == current_day:
        break
    i += 1

print(7 - i)

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

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

Solution (Python):


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

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

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

print(W.index(S))

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

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

Solution (Python):
s=input()
s=s.lower()
week=['sun','mon','tue','wed','thu','fri','sat']
ans=week.index(s)
print(7-int(ans))

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

Solution (Python):
  


S = input()

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

answer = 7 - a

print(answer)

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

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

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

Solution (Python):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = input()
    p = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

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

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

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

Solution (Python):




S = input()

if S == 'SUN':
    print(7)
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):
S=str(input())
W=['SUN','MON','TUE','WED','THU','FRI','SAT']
for i in range(len(W)):
  if S==W[i]:
    print(7-i)

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

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

Solution (Python):
word = input()
if word == 'SUN':
    print(7)
elif word == 'MON':
    print(6)
elif word == 'TUE':
    print(5)
elif word == 'WED':
    print(4)
elif word == 'THU':
    print(3)
elif word == '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):
D = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-D.index(input()))

Solution (Python):


from typing import *
import collections
import functools
import itertools
import math
import sys

INF = float('inf')


def solve(S: str):
    return 7 - ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'].index(S)


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  
    print(f'{solve(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):
lst = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
s = input()
n = lst.index(s)
print(7 - n)

Solution (Python):
Day_Week_S = input()

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

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

Solution (Python):
S = input()


if S == "SUN":
    print(7)

if S == "SAT":
    print(1)

if S == "MON":
    print(6)

if S == "TUE":
    print(5)

if S == "WED":
    print(4)

if S == "THU":
    print(3)

if S == "FRI":
    print(2)

Solution (Python):
S = input()

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

Solution (Python):
S = input()

if S == 'MON':
    print("6")

elif S == 'TUE':
    print("5")

elif S == 'WED':
    print("4")

elif S == 'THU':
    print("3")

elif S == 'FRI':
    print("2")

elif S == 'SAT':
    print("1")

elif S == 'SUN':
    print("7")

Solution (Python):
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):
a =  ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s=input()
for i in range(7):
  if(a[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()

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 = str.upper(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):


answer = input ()

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

Solution (Python):
s = input()

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

Solution (Python):
s = input()
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')
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')
else:
    print('Error')

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

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

Solution (Python):







S = input()

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

Solution (Python):
S = input()

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

if S == 'SUN':
    print(7)
else:
    print((7 - days[S]) % 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:
    print("error")

Solution (Python):
S = input()

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

print(output)

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

Solution (Python):



S = input()







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

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

Solution (Python):
S = input()


if S == "SUN":
    print(7)

if S == "SAT":
    print(1)

if S == "MON":
    print(6)

if S == "TUE":
    print(5)

if S == "WED":
    print(4)

if S == "THU":
    print(3)

if S == "FRI":
    print(2)

Solution (Python):
S =input()

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

Solution (Python):
S = input()

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

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

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

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

Solution (Python):






input_weekday = input()


result = 0
if input_weekday == 'SUN':
    result = 7
elif input_weekday == 'MON':
    result = 6
elif input_weekday == 'TUE':
    result = 5
elif input_weekday == 'WED':
    result = 4
elif input_weekday == 'THU':
    result = 3
elif input_weekday == 'FRI':
    result = 2
elif input_weekday == 'SAT':
    result = 1

print(result)

Solution (Python):
weekday = input()

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

next = 7 - list.index(weekday)

print(next)

Solution (Python):
weekday = input()

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

for i in list:
    if weekday == i:
        daynum = list.index(weekday)

next = 7 - daynum

print(next)

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

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

    ans = 7 - lst.index(S)

    print(ans)


if __name__ == "__main__":
    main()

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

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

    ans = 6 - lst.index(S)

    if ans == 0:
        ans = 7

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
s = input()

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

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

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

Solution (Python):
a = input()
day = ['SUN','MON','TUE','WED','THU','FRI','SAT']
values = [7,6,5,4,3,2,1]
d = dict(zip(day,values))
print(d[a])

Solution (Python):
D=['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
S=input()
ans=6-D.index(S)
if ans == 0:
	ans=7
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)
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):
S = input()

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

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

Solution (Python):
S = input()

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

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

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


youbi = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
a = input()
print(7 - youbi.index(a))

Solution (Python):
S=input()

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

elif S=='MON':
    print('6')

elif S=='TUE':
    print('5')

elif S=='WED':
    print('4')

elif S=='THU':
    print('3')

elif S=='FRI':
    print('2')

elif S=='SAT':
    print('1')

Solution (Python):

s=input()

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

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

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

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

Solution (Python):
S = input ()

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

Solution (Python):
S = input()

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

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

Solution (Python):


S = input()

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

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

Solution (Python):


S = input()

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

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

Solution (Python):
S = input()

if S == 'MON':
    print("6")

elif S == 'TUE':
    print("5")

elif S == 'WED':
    print("4")

elif S == 'THU':
    print("3")

elif S == 'FRI':
    print("2")

elif S == 'SAT':
    print("1")

elif S == 'SUN':
    print("7")

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

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

for index, day in enumerate(days):
    if Day_of_the_week == day:
        print(7 - index)