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

"""
AtCoder A
"""

import sys, math, random
import numpy as np








inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LLS(): return [list(sys.stdin.readline().rstrip()) for _ in sys.stdin.readlines()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()



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




if __name__ == "__main__":
    main()

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
else: ans = 1

print(ans)

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

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


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

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

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

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

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):
a = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
dict_ = {}
for i, day in enumerate(a):
    dict_[day] = i

s = input()
out = 7 - dict_[s]
print(out)

Solution (Python):
import sys
S = input()

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

Solution (Python):
S = input()

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

n = h.index(S)

print(7-n)

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

Solution (Python):
to=input()

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

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


from collections import deque, defaultdict
import itertools as ite
import sys
import math
import decimal

sys.setrecursionlimit(1000000)

INF = 10 ** 18
MOD = 10 ** 9 + 7

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

Solution (Python):
def main():
    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)


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):
W=["SUN","MON","TUE","WED","THU","FRI","SAT"]
A=[7,6,5,4,3,2,1]

S=input()
for i in range(7):
    if W[i]==S:
        print(A[i])

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

print(d[s])

Solution (Python):
S = input()

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

Solution (Python):
s = input()

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

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

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

if __name__ == '__main__':
    main()

Solution (Python):
S = input()
ans = ""
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()
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):
if __name__ == "__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)

Solution (Python):
def solve():
    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__':
    solve()

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

print(d[S])

Solution (Python):
s = input()

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

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

Solution (Python):
s=input()

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

print(7-days.index(s))

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

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

s = input()


for i,x in enumerate(a):
  if s == x:
    print(7-i)

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

S = input().strip()

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

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

Solution (Python):
import collections



S = input()
l = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
ans = 7 - l.index(S)

if ans == 0:
    ans += 7
print(( ans) )

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

print(dic[input()])

Solution (Python):
S = input()

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

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

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

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

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

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

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

Solution (Python):
S = input()

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

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

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

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

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

Ss = input()

print(convs[Ss])

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

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

print(7-ss.index(S))

Solution (Python):
S = input().strip()

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

cnt = 0
for i in range(len(A)):
    if A[i] == s:
        cnt = i
        break

print(7-i)

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()
li = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7 - li.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,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
mod = 10**9+7
Max = sys.maxsize
def l(): 
    return list(map(int,input().split()))
def m(): 
    return map(int,input().split())
def onem(): 
    return int(input())
def s(x): 
    a = []
    aa = x[0]
    su = 1
    for i in range(len(x)-1):
        if aa != x[i+1]:
            a.append([aa,su])
            aa = x[i+1]
            su = 1
        else:
            su += 1
    a.append([aa,su])
    return a
def jo(x): 
    return " ".join(map(str,x))
def max2(x): 
    return max(map(max,x))
def In(x,a): 
    k = bs.bisect_left(a,x)
    if k != len(a) and a[k] ==  x:
        return True
    else:
        return False
"""
def nibu(x,n,r):
    ll = 0
    rr = r
    while True:
        mid = (ll+rr)//2

    if rr == mid:
        return ll
    if (ここに評価入れる):
        rr = mid
    else:
        ll = mid+1
"""

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

for i in range(6,-1,-1):
    d[a[i]] = 7-i
kkk = input()

print(d[kkk])

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

Solution (Python):
s = input()

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)
elif s == a[6]:
    print(1)

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

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


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
import numpy as np
import collections
import sys
day = input()
if day == 'SAT':
    print(1)
    sys.exit()
if day == 'FRI':
    print(2)
    sys.exit()
if day == 'THU':
    print(3)
    sys.exit()
if day == 'WED':
    print(4)
    sys.exit()
if day == 'TUE':
    print(5)
    sys.exit()
if day == 'MON':
    print(6)
    sys.exit()
if day == 'SUN':
    print(7)
    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)
elif S == 'SAT':
  print(1)

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

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

Solution (Python):
S = input()

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

print(result)

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

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

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

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

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

Solution (Python):
S = input()

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

print(7 - int(youbi.index(S)))

Solution (Python):
day=input()

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

Solution (Python):
S=input()

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

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

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

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

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

if S == 'SUM': print(7)
else: print(7-day.index(S))

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


if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin
S = (stdin.readline().rstrip())
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':
  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()
if S == 'SUN':
    print(7)
    exit(0)
if S == 'MON':
    print(6)
    exit(0)
if S == 'TUE':
    print(5)
    exit(0)
if S == 'WED':
    print(4)
    exit(0)
if S == 'THU':
    print(3)
    exit(0)
if S == 'FRI':
    print(2)
    exit(0)
if S == 'SAT':
    print(1)
    exit(0)

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

Solution (Python):
from collections import Counter,defaultdict,deque
import sys
import bisect
import math
import itertools
import string
import queue
import copy


from itertools import permutations, combinations
from heapq import heappop, heappush

sys.setrecursionlimit(10**8)
mod = 10**9+7
 
def inp(): 
    return int(input())
def inpm(): 
    return map(int,input().split())
def inpl(): 
    return list(map(int, input().split()))
def inpls(): 
    return list(input().split())
def inplm(n): 
    return list(int(input()) for _ in range(n))
def inpll(n): 
    return [list(map(int, input().split())) for _ in range(n)]

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

if __name__ == "__main__":
    main()

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

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

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

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

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()
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 math
import queue
import bisect
import heapq
import time
import itertools

mod = 1e9+7

def swap(a,b):
    return (b,a)

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

def divisors(a): 
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): 
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): 
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

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


if __name__=='__main__':
    main()

Solution (Python):
import sys


import math
from fractions import gcd
from collections import deque
import bisect

sys.setrecursionlimit(10000)


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


if __name__ == "__main__":
    main()

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

Solution (Python):
s = input()

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

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

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

print(7 - s.index(S))

Solution (Python):
import sys


def main():
    
    day = input()

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

    print(7-days.index(day))


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):
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, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0

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

Solution (Python):


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



if __name__ == '__main__':
    print(solve())

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
def input():
    return sys.stdin.readline()[:-1]

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)