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

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

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

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

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

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

Solution (Python):
val = input()

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

Solution (Python):
s = input()

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

ans = 7 - days.index(s)
print(ans)

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

Solution (Python):
import math
import re
import copy

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

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


print(7- D.index(S))

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

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

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

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

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

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

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

print( 7 - dl.index(s))

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

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

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

s = input()
if s == "SUN":
  print(7)
else:
  print(6 - data.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
input = sys.stdin.readline
def main():
    S = input().rstrip()
    days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
    today = days.index(S)
    ans = 7 - today
    print(ans)
if __name__ == "__main__":
    main()

Solution (Python):
s = input()

l = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
idx = l.index(s)

print(7-idx)

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

print(8-d[S])

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

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

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

for i in range(7):
    if y[i]==s:
        break

print(7-i)

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

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

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

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

Solution (Python):


s = str(input())

week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
week.reverse()

index = week.index(s)
print(index+1)

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

Solution (Python):


s = str(input())

week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
week.reverse()

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

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

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

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

Solution (Python):
a = input()


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

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"]

for d in week:
    if d==s:
        print(7-week.index(d))

Solution (Python):
import sys

a= ['SAT','FRI','THU','WED','TUE','MON','SUN']
b=input()
c = a.index(b) + 1

print(c)

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

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

Solution (Python):
import sys
a=str(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()
li=["MON","TUE","WED","THU","FRI","SAT","SUN"]
if s=="SUN":
  print(7)
else:
  print(6-(li.index(s)))

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

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

if S == "SUN":
  print("7")
elif S[2] == "N":
  print("6")
elif S[2] == "E":
  print("5")
elif S[2] == "D":
  print("4")
elif S[2] == "U":
  print("3")
elif S[2] == "I":
  print("2")
else:
  print("1")

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

S = input()

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

if S == "SUN":
    print(7)
else:
    sun_ind = week.index("SUN")
    today_ind = week.index(S)
    
    print(sun_ind - today_ind)

Solution (Python):

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

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

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

Solution (Python):
s = input()

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

if(s == a[0]):
  print(7)
elif(s == a[1]):
  print(6)
elif(s == a[2]):
  print(5)
elif(s == a[3]):
  print(4)
elif(s == a[4]):
  print(3)
elif(s == a[5]):
  print(2)
else:
  print(1)

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

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

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

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

print(next_sunday[input()])

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

for i in DAY:
    if S == i:
        break
    count += 1
print(7 - count)

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

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

print(7 - week.index(S))

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

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

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

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

Solution (Python):
import fileinput

days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
i = days.index(input())

print(7 - i)

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

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

if __name__ == '__main__':

    ABC_146_A()

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

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

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

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

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

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

Solution (Python):

import copy
import random
import bisect 
import fractions 
import math
import sys
import collections

mod = 10**9+7
sys.setrecursionlimit(mod) 

d = collections.deque()
def LI(): return list(map(int, sys.stdin.readline().split()))

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

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

s = input()

print(6-w.index(s)+1)

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


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


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):

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

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

Solution (Python):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from functools import reduce


import sys
def I(): return int(input())  
def Is(): return map(int, input().split())  
def LI(): return list(map(int, input().split()))  
def TI(): return tuple(map(int, input().split()))  
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()  
def LS(): return list(input())  
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(1000000)
MOD = 1000000007
INF = float('inf')

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

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

Solution (Python):


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

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

Solution (Python):

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

print( 7 - day.index(S) )

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

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

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

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

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

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

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

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

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

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

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

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

List=["SUN","MON","TUE","WED","THU","FRI","SAT"]
List.reverse()

for i in range(len(List)):
    if List[i]==S:
        print(i+1)

Solution (Python):
n = input()

t = []
t.append('SUN')
t.append('MON')
t.append('TUE')
t.append('WED')
t.append('THU')
t.append('FRI')
t.append('SAT')

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

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

idx = lst.index(s)

if s == 'SUN':
    print(7)
else:
    print(6-idx)

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

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):
S=input()

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

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

"""
Created on Sat May  2 21:05:25 2020

@author: Kanaru Sato
"""

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

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

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

for i in range(7):
    if week[i]==s:
        ans = 7 - i

print(ans)

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

print(d[input()])

Solution (Python):


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

S_week = week_list.index(S)

ans = 7 - S_week

print(ans)

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

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

Solution (Python):
S = input()

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

print(7 - week.index(S))

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

print(d[s])

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

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

Solution (Python):

import sys


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



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


if __name__ == '__main__':
    main()

Solution (Python):
S = input()

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

Solution (Python):
import os

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

if __name__ == "__main__":
	main()

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

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

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

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

Solution (Python):
import sys, math
from pprint import pprint
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

days = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
S = rs()
print(days[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()
ls = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
for i in ls:
    if s == i:
        p = ls.index(s)

if s == 'SUN':
    print(7)
else:
    print(ls.index('SUN') - p)

Solution (Python):

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

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

Solution (Python):


def main():
    N = input()

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


main()

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

Solution (Python):
date = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
date_rvs = date[::-1]
print(date_rvs.index(input())+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):
n = input()
n_list = ["MON","TUE","WED","THU","FRI","SAT","SUN"]
count = 7
for i in range(7):
    count -= 1
    if n == n_list[i]:
        break
if count == 0:
    count = 7
print(count)

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

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

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

print(7 - s_idx)

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

Solution (Python):






import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache






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






def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]


def inv(n): return pow(n, MOD-2, MOD)


kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret


def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr


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





S = str(inputS())

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

for i in range(8):
  if S == l[i]:
    print(int(i))

Solution (Python):
S = input()
 
l = [None,"SAT","FRI","THU","WED","TUE","MON","SUN"]
 
for i in range(8):
  if S == l[i]:
    print(int(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):
S=input()
L=['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-L.index(S))

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

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

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

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

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

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

next_sunday = 7-index_s
print(next_sunday)

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

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

Solution (Python):
import sys
a = sys.stdin.readline().rstrip()
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 = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7 - d.index(s))

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

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

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

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

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