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

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

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

for i in range(1,8):
  if S == D[i]:
    print(i)

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

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

Solution (Python):
def main():
    DW = 'SUN,MON,TUE,WED,THU,FRI,SAT'
    DW = DW.split(',')

    s = input()
    ind_sun = DW.index('SUN')
    ind_s = DW.index(s)
    diff = ind_sun - ind_s
    print(diff if diff > 0 else diff + 7)


if __name__ == '__main__':
    main()

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

print((-day.index(input())-1)%7+1)

Solution (Python):
s = input()

week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
ans_dic = {k: v for k, v in zip(week, range(7, 0, -1))}

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

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

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

Solution (Python):
S = input()
ls = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
cnt = 0
dict = {}
for item in ls:
    dict[item] = cnt
    cnt += 1
print(7 - dict[S])

Solution (Python):


def main():

    S = input()

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

    for i, name in enumerate(week):
        if name == S:
            ans = 7 - i

    print(ans)


if __name__ == "__main__":
    main()

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

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

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

Solution (Python):






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

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

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

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

day = input()

print(ary.index(day))

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

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

print(str(7 - wd.index(s) % 7))

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

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

b=input()

print(6-a.index(b) if b!='SUN' else '7')

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

ind=l.index(s)
if ind==0:
  print(7)
else:
  print(7-ind)

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':7, 'MON':6, 'TUE': 5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}

print(week[S])

Solution (Python):







































global FLAG_LOG
FLAG_LOG = False


def log(value):
    
    
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    S = lines[0]
    
    
    
    
    
    
    
    
    
    

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

    return [result]



def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines



def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['SAT']
        lines_export = [1]
    if pattern == 2:
        lines_input = ['SUN']
        lines_export = [7]
    return lines_input, lines_export



def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode



def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    
    
    
    
    
    
    
    
    
    
    



if __name__ == '__main__':
    main()

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

Solution (Python):
a = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
a = a * 2
c = 0
z = input()
for i in range(0,7):
	if z == a[i]:
		for j in range(i + 1, 14):
			if a[j] == "SUN":
				print(j - i )

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):
from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import product, combinations,permutations
from copy import deepcopy
import sys
import numpy as np
sys.setrecursionlimit(4100000)

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

if __name__ == '__main__':
    S = input()
    for i, d in enumerate(day):
        if S==d:
            print(7-i)

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

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

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

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

Solution (Python):
import sys

input = sys.stdin.readline


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

    S = input().rstrip()
    ans = next_day[S]
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i for i2 in range(j)]





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

S = input()

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

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

if '__main__' == __name__:
    resolve()

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

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

print(7-week.index(S))

Solution (Python):
s = input()

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

print(7 - ls.index(s))

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

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

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

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

Solution (Python):
now = input()
li=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i, d in enumerate(li):
  if now == d:
    print(7-i)

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

Solution (Python):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

s = s()
a = ["SAT", "FRI", "THU","WED","TUE","MON","SUN"]
x = a.index(s) + 1
print(x)

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

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

print(T[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):
import sys
base = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = input()

if not ( S in base ): sys.exit()

print(7 - base.index(S))

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

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

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

index = days.index(S)
print(7-index)

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

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

Solution (Python):
s = input()

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

Solution (Python):
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")

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

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

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

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

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

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

Solution (Python):
s=input()

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

for i in range(7):
    if w[i]==s:
        print(i+1)
        break

Solution (Python):
s = input()

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

print(day[s])

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

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

print(7-day.index(S))

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

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

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

Solution (Python):
s = input()

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

print(ans_dict[s])

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

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

print(7 - xs.index(s))

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']
print(7 - week.index(input()))

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

print(7-days.index(S))

Solution (Python):
a = input()

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

p = arr.index(a)

print(7-p)

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

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

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

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

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

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 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
SS = ['SUN','MON','TUE','WED','THU','FRI','SAT']
S = readline().decode().rstrip()
for i in range(7):
    if S == SS[i]:
        print(7-i)
        sys.exit()

Solution (Python):
s = input()

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

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

Solution (Python):
from sys import stdin

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

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

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

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

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

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

Solution (Python):
S = input()

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

print(answer[S])

Solution (Python):






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

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

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

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

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

Solution (Python):
A = input()

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

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

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

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

print(6 - week.index(S)) if week.index(S) != 6 else print(7)

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

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

Solution (Python):
s = input()

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

print(dict[s])

Solution (Python):
S = input()
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
i = 0
for d in reversed(days):
    i += 1
    if d == S:
        break
print(i)

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

Solution (Python):
import os, sys, re, math

S = input()

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

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

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

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

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

Solution (Python):
import sys




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


if __name__ == "__main__":
    main()

Solution (Python):
s=input()
if s=="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):
import sys
input = sys.stdin.readline

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

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

if __name__ == '__main__':
    main()

Solution (Python):

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

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

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

Solution (Python):
s=input()

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

print(7-days.index(s))

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()
    days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

    print(7 - days.index(S))

    return


if __name__ == '__main__':
    main()

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

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

Solution (Python):


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

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

Solution (Python):
print(-sum(map(ord,input()))**236%6133%8)

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

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

Solution (Python):


s = str(input())

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

print(dic[s])

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

S = input()

rest = 7-li.index(S)

print(rest)

Solution (Python):
import sys
sys.setrecursionlimit(4100000)
import math
INF = 10**9

def main():
    S = input()

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


if __name__ == '__main__':
    main()

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

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

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

print(7-days.index(S))

Solution (Python):
s = input()
if s == 'SUN':
    print(7)
elif s == 'MON':
    print(6)
elif s == 'TUE':
    print(5)
elif s == 'WED':
    print(4)
elif s == 'THU':
    print(3)
elif s == 'FRI':
    print(2)
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)
    else:
        print(1)

main()

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

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

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

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

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

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

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

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

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

if ans == "SUN": print(7)
if ans == "MON": print(6)
if ans == "TUE": print(5)
if ans == "WED": print(4)
if ans == "THU": print(3)
if ans == "FRI": print(2)
if ans == "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):
def main():
    s = str(input())
    dic = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
    print(dic.get(s))
    
main()

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

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

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

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

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

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

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

print(7 - days.index(day))

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

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

Solution (Python):


ent = input()
l = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

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

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

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

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

print(l.index(s)+1)

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

Solution (Python):
S=input()
result=7
l=['SUN','MON','TUE','WED','THU','FRI','SAT']
for i in l:
    if i != S:
        result=result-1
    else:
        break
print(result)

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