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_list = list("MON,TUE,WED,THU,FRI,SAT,SUN".split(","))
s = input()
print(s_list.index("SUN") - s_list.index(s) if s != "SUN" else 7)

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

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

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


print(days[input()])

Solution (Python):


import sys
sys.setrecursionlimit(300000)


def solve(S: str):
    d = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    for i, v in enumerate(d):
        if S == v:
            ret = 7 - i
            break
    print(ret)
    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)

if __name__ == '__main__':
    main()

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

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

Solution (Python):
s = input()

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

print(int(dDic[s]))

Solution (Python):
"""
author : halo2halo
date : 8, Jan, 2020
"""

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
date = readline().decode('utf8').rstrip()

print(len(week)-week.index(date))

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

if s == "SUM":
	print(7)
else:
	print((l.index(s)+1))

Solution (Python):
day = input()

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

print(7 - days[day])

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

input_day = input()

for day in day_of_week:
  if day == input_day:
    print(day_of_week[input_day])

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

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

for i in (range(length)):
    if S == List[i]:
        print(i+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):
D = ["SUN","MON","TUE","WED","THU","FRI","SAT" ]
S = input()
print(len(D)-D.index(S))

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

n = w.index(dw)

print(7-n)

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

Solution (Python):
date = input()

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

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

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

s = input()
print(7 - day.index(s))

Solution (Python):
s = input()

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

for i in range(len(l)):
    if l[i] == s:
        print(i+1)

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

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

    S = input().strip()

    ans = len(weekday) - weekday.index(S)
    print(ans)

if __name__ == "__main__":
    main()

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

s = input()

ans = 7 - d[s]
print(ans)

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

if s == "SUN" :
  result = 7
else:
  idx = week.index(s)
  result = 6 - idx
  
print(result)

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

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

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 math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,copy,functools
import time,random

sys.setrecursionlimit(10**7)
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 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 pf(s): return print(s, flush=True)
def pe(s): return print(str(s), file=sys.stderr)
def JA(a, sep): return sep.join(map(str, a))
def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)


def main():
    s = S()
    t = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
    for i in range(7):
        if t[i] == s:
            return 7 - i

    return -1


print(main())

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a={ 'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    s=STR()
    print(a[s])
if __name__ == '__main__':
    do()

Solution (Python):
def main():
    WEEK = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    w = input()
    d = 7
    for week in WEEK:
        if w == week:
            print(d)
            return
        d -= 1


if __name__ == "__main__":
    main()

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

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

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

Solution (Python):
S = input()

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

print(Day[S])

Solution (Python):
S = input()

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

Solution (Python):
S = input()

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

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

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

print(len(days) - days.index(stS))

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

Solution (Python):
import sys
import math
import heapq
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
DVSR = 1000000007
def POW(x, y): return pow(x, y, DVSR)
def INV(x, m=DVSR): return pow(x, m - 2, m)
def DIV(x, y, m=DVSR): return (x * INV(y, m)) % m
def LI(): return [int(x) for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()
def II(): return int(input())
def FLIST(n):
    res = [1]
    for i in range(1, n+1): res.append(res[i-1]*i%DVSR)
    return res
def gcd(x, y):
    if x < y: x, y = y, x
    div = x % y
    while div != 0:
        x, y = y, div
        div = x % y
    return y


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

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

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

Solution (Python):
S = input()

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

today = weeks.index(S)
ans = len(weeks[today:6])
if ans == 0:
    print(7)
else:
    print(ans)

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

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

Solution (Python):
w = input()

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

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

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

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

Solution (Python):
s1 = input()

n1 = 0
if s1 == "SUN":
    n1 = 7
elif s1 == "MON":
    n1 = 6
elif s1 == "TUE":
    n1 = 5
elif s1 == "WED":
    n1 = 4
elif s1 == "THU":
    n1 = 3
elif s1 == "FRI":
    n1 = 2
elif s1 == "SAT":
    n1 = 1

print(n1)

Solution (Python):



S = input()
string = ('SUN','MON','TUE','WED','THU','FRI','SAT')

if S == 'SUN' : 
    print(7)
else : 
    print(7-string.index(S))

Solution (Python):
s = input()

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

ans = 6 - d[s] + 1

print(ans)

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

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

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


if __name__ == '__main__':
    main()

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

for i in range(len(dow)):
    if dow[s] == 'SUN' and ans > 0:
        break
    else:
        ans += 1
        s += 1
        if s > 6:
            s = 0
print(ans)

Solution (Python):
s = input()

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

print(table[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):

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

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

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

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

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

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

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

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

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

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)
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):
str_d = input().replace("SUN","7").replace("MON","6").replace("TUE","5").replace("WED","4").replace("THU","3").replace("FRI","2").replace("SAT","1")
ans = int(str_d)
print(ans)

Solution (Python):
from collections import defaultdict as DD
A =DD(int)
D = {"MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1, "SUN":7 }

T = input()
print (D[T])

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

Solution (Python):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

ans = 0
S = input()
weeklist = ['SUN','MON','TUE','WED','THU','FRI','SAT']
numlist  = list(range(7))
weekdic = dict(zip(weeklist,numlist))


ans = 7 - weekdic[S]
print(ans)

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()
dates = (("SUN", 7),
         ("MON", 6),
         ("TUE", 5),
         ("WED", 4),
         ("THU", 3),
         ("FRI", 2),
         ("SAT", 1),
         )
for date in dates:
    if S == date[0]:
        print(date[1])

Solution (Python):
s = input()

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

print(aa[s])

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

a = l.index(s)
print(7-a)

Solution (Python):
S = input()

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

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

Solution (Python):
def ints():
  return [int(x) for x in input().split()]
def readi():
  return int(input())

ws = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
w = input()

i = ws.index(w)
print(7-i)

Solution (Python):
S = input()

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

print(7-d[S])

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

week = input()
print(dic[week])

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

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

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

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

Solution (Python):


days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
i = days.index(input().strip())
print(7-i)

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

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

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

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

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

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

print(days[input()])

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

S = input()

print(week[S])

Solution (Python):

import sys


def main(argv=sys.argv):
  week = {'MON':6, 'TUE':5 , 'WED':4 , 'THU':3, 'FRI':2, 'SAT':1, 'SUN':0}
  
  day = input()
  
  if day == 'SUN':
    print(7)
    
  else:
    print(week[day])

  return 0


if __name__ == '__main__':
  sys.exit(main())

Solution (Python):

import sys


def main(argv=sys.argv):

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

    today = input()

    days = weekdays.index('SUN') - weekdays.index(today)

    if days == 0:
        
        days = 7

    print(days)

    return 0


if __name__ == '__main__':
    sys.exit(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()

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

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

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

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

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

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

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

Solution (Python):
arr = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
dict = {i : idx for idx, i in enumerate(arr)}
arr = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
s = input()
print(7-dict[s])

Solution (Python):
a=input()
if a=='SUN':
 b=7
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
print(b)

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

Solution (Python):
S = input()

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

print(output)

Solution (Python):
S = input()

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

print(ans[S])

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

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

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

week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
today = input()

for i, day in enumerate(week):
	if day == today:
		print(7 - i)
		sys.exit()

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

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

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

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

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

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

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

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

S=input()

print(dict[S])

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

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

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

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):
def calc_aft(ystr):
    youbi = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    if(ystr in youbi):
        return 7-youbi.index(ystr)
    else:
        return

print(calc_aft(input()))

Solution (Python):
S = input()

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

print(week[S])

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

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

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

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

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

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

s = input()
i = 0


while(i<=7):

	if youbi[i] == s:
		print(7-i)
		break
	i+=1

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

Solution (Python):
def when_sunday(day):
    week_d = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
    if day == "SUN":
        return 7
    return 6 - week_d.index(day)
  
print(when_sunday(input()))

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

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

S = input()
print(youbi[S])

Solution (Python):
from sys import stdin
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
n = (stdin.readline().rstrip())



S =['SUN','MON','TUE','WED','THU','FRI','SAT']
a = S.index(n)
print(len(S) - a)

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

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

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

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

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

Solution (Python):

sen = input()

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

index = day.index(sen)
if(6 - index == 0):
    result = 7
else:
    result = 6 - index
print(result)

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

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

Solution (Python):
if __name__=='__main__':
    s=input()
    list=['MON','TUE','WED','THU','FRI','SAT','SUN']
    n=abs(list.index(s)-list.index('SUN'))
    if n==0:
        n=7
    print(n)

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

Solution (Python):
char=input()

week=("SUN","MON","TUE","WED","THU","FRI","SAT")

print(7-week.index(char))

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

Solution (Python):
import sys

day = sys.stdin.read().strip()

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

day_index = days.index(day)

print(7-day_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):
x = input()

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

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