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

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

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

Solution (Python):
import sys

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

if __name__ == '__main__':
    s = sys.stdin.readline().strip()
    solve(s)

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

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

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)
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()
A = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
for i,a in enumerate(A):
    if a==S:
        print(7-i)

Solution (Python):

si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
s = si()
if s=='SAT':
    print(1)
elif 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)

Solution (Python):

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


s = input()
print(calc(s))

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy,copy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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


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

Solution (Python):
S = input()

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

print(w[S])

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

print(7-n)

Solution (Python):
S = input()

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

print(7-youbi.index(S))

Solution (Python):
import heapq as h
import math
import numpy as np
import copy
import itertools

 

n = input()

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

Solution (Python):

def main():
    dic= {"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
    s = input()
    print(dic[s])
if __name__=='__main__':
    main()

Solution (Python):
S = input()

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

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

index = days.index(s)

ans = 7 - index
print(ans)

Solution (Python):
s = input()

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

print(7 - youbi.index(s))

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

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

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

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


import sys

def input(): return sys.stdin.readline().strip()
def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(N=None): return list(MAP()) if N is None else [INT() for i in range(N)]
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
sys.setrecursionlimit(10 ** 9)
INF = 10 ** 18
MOD = 10 ** 9 + 7

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

S = input()

print(d[S])

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

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

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

day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
p = [7, 6, 5, 4, 3, 2, 1]

idx = day.index(s)

print(p[idx])

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

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

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

Solution (Python):
S = input()

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

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

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):
import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)
INF = 10**30

def main():
    s = input().strip()
    if s[:2] == 'SU':
        print(7)
    elif s[:2] == 'MO':
        print(6)
    elif s[:2] == 'TU':
        print(5)
    elif s[:2] == 'WE':
        print(4)
    elif s[:2] == 'TH':
        print(3)
    elif s[:2] == 'FR':
        print(2)
    elif s[:2] == 'SA':
        print(1)

if __name__ == '__main__':
    main()

Solution (Python):
s = input()

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

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

Solution (Python):
from sys import stdin

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

s = stdin.readline().rstrip()
if s == "SUN":
    print(7)
    exit()
print(7-li.index(s)-1)

Solution (Python):
s=input()
n={"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU":3, "FRI": 2, "SAT": 1}
print(n[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):
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

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

s = input()

if s == 'SUN':
  print(7)
  exit()
print((7 - days.index(s))%7)

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

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

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

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

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

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

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

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

Solution (Python):
S = input()

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

i = youbi.index(S)

print(7 - i)

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

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

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

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


main()

Solution (Python):
d = input()

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

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

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

print(ans)

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

S = input()

print(holiday_dict[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):
def examA():
    S = SI()
    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)

    return


def examB():
    return

def examC():
    return

def examD():
    return

def examE():
    return

def examF():
    return

import sys,copy,bisect,itertools
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

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

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

dict = dict()
dict["SUN"] = 7
dict["MON"] = 6
dict["TUE"] = 5
dict["WED"] = 4
dict["THU"] = 3
dict["FRI"] = 2
dict["SAT"] = 1

print(dict[S])

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

Solution (Python):


import os
import sys


def main():
    S = inp()

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




DEBUG = 'DEBUG' in os.environ


def inp():
    return sys.stdin.readline().rstrip()


def read_int():
    return int(inp())


def read_ints():
    return [int(e) for e in inp().split()]


def dprint(*value, sep=' ', end='\n'):
    if DEBUG:
        print(*value, sep=sep, end=end)


if __name__ == '__main__':
    main()

Solution (Python):
S = input()

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

ind = D.index(S)

print(7-ind)

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

Solution (Python):
S = input()

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

print(weekdays[S])

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

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

Solution (Python):
s = input()

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

S = input()
i = a.index(S)
print((-i - 1) % 7 + 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()
list = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}
print(list[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()

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

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

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

print(7 - pos)

Solution (Python):
s = input()

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

print(7-d.index(s))

Solution (Python):
import sys
import math
import bisect
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop


def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res


def IR(n):
    return [I() for i in range(n)]



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



def B():
    return



def C():
    return



def D():
    return



def E():
    return



def F():
    return



def resolve():
    A()
    return



if __name__ == "__main__":
    A()

Solution (Python):
s = input()

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

print(days[s])

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

Solution (Python):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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

print(m[s])

Solution (Python):
S = input()

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

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

Solution (Python):


n = input()

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

Solution (Python):
s = input()

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

Solution (Python):
s = input()

if s == "SAT":
    print(1)
elif s == "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)

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

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

MOD = 10 ** 9 + 7

import math



def sosuhante(n):
    for k in range(2, int(math.sqrt(n))+1):
        if n% k ==0:
            return False
    return True
def cmb(n, r):
    if n - r < r: r = n - r
    if r == 0: return 1
    if r == 1: return n

    numerator = [n - r + k + 1 for k in range(r)]
    denominator = [k + 1 for k in range(r)]

    for p in range(2,r+1):
        pivot = denominator[p - 1]
        if pivot > 1:
            offset = (n - r) % p
            for k in range(p-1,r,p):
                numerator[k - offset] /= pivot
                denominator[k] /= pivot

    result = 1
    for k in range(r):
        if numerator[k] > 1:
            result *= int(numerator[k])

    return result

def main():

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


    print(a)


if __name__ == "__main__":
    main()

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

print(week[day])

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

Solution (Python):
S = input()

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

print(len(youbi) - youbi.index(S))

Solution (Python):


S = input()

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

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

Solution (Python):
import sys

input = sys.stdin.readline


class AtCoder:
    def main(self):
        S = input().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)
        elif S == 'SAT':
            print(1)



if __name__ == '__main__':
    AtCoder().main()

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

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

num = weeks.index(a)

print(7-num)

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

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

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

Solution (Python):
s = input()

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

for i, n in enumerate(l):
    if s == n:
        print(7-i)

Solution (Python):


import sys
import math
import collections
import itertools
from inspect import currentframe
INF = 10 ** 10
MOD = 10 ** 9 + 7
def input() : return sys.stdin.readline().strip()
def gcd(x, y) : return y if x % y == 0 else gcd(y, x % y)
def lcm(x, y) : return (x * y) // gcd(x, y)
def I() : return int(input())
def MI() : return map(int, input().split())
def LI() : return [int(x) for x in input().split()]
def RI(N) : return [int(input()) for _ in range(N)]
def LRI(N) : return [[int(x) for x in input().split()] for _ in range(N)]
def chkprint(*args) : names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}; print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args))

S = input()

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

print(7 - index)

Solution (Python):
def main():
    n = str(input())
    
    if n == 'SUN':
        print(7)
    elif 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)

if __name__ == '__main__':
    main()

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

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

print(d[S])

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

print(7-day.index(s))

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

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

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

Solution (Python):
s = input()

if s == "SUN":
  print(7)
elif s == "MON":
  print(6)
elif s == "TUE":
  print(5)
elif s == "WED":
  print(4)
elif s == "THU":
  print(3)
elif s == "FRI":
  print(2)
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):
import sys
sys.setrecursionlimit(10**7)

lis = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
dic = {}
for i,s in enumerate(lis[::-1]):
    dic[s] = i+1
S = input()

print(dic[S])

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

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


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)