Problem:
 Score : 100 points    Problem Statement Given is a string S representing the day of the week today.  S is SUN , MON , TUE , WED , THU , FRI , or SAT , for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.  After how many days is the next Sunday (tomorrow or later)?      Constraints  S is SUN , MON , TUE , WED , THU , FRI , or SAT .         Input Input is given from Standard Input in the following format:  S       Output Print the number of days before the next Sunday.        Sample Input 1 SAT      Sample Output 1 1  It is Saturday today, and tomorrow will be Sunday.       Sample Input 2 SUN      Sample Output 2 7  It is Sunday today, and seven days later, it will be Sunday again.

Solution (Python):
S = input()
if S == "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)
else:
  print(0)

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

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

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

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

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

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

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

def main():
    s = input()
    days = ['','SAT','FRI','THU','WED','TUE','MON','SUN']
    print(days.index(s))
    
if __name__ == '__main__':
    main()

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

if __name__ == '__main__':
    solve()

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

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

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

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

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

print(7 - ans.index(s))

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

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

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

print(7-a.index(s))

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

n = W.index(S)

print(7 - n)

Solution (Python):


def main():
    S = input()
    week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    print(7-week.index(S))
    
if __name__ == "__main__":
    main()

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

Solution (Python):
d = dict(zip( ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN'], '6543217'))
s = input()
print(d[s])

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

'''

'''

s = input().rstrip()

if s == "MON": print(6)
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)
else:
    print(7)

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

Solution (Python):
S = input()

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

print(day_of_the_week.index(S) + 1)

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

Solution (Python):
week=["SUN","MON","TUE","WED","THU","FRI","SAT"]
S=input()
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):
import sys

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

if S == "SUN":
    print(7)
    sys.exit()

for i, youbi in enumerate(youbi):
    if S == youbi:
        print(6-i)

Solution (Python):
S =input()

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


x =day.index(S)

print(7 - x)

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):
li=["SUN","MON","TUE","WED","THU","FRI","SAT"]
day=input()
for i in range(7):
    if(li[i]==day):
        print(7-i)

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

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

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

print(7 - d.index(s))

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

print(d_dict[s])

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

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

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

Solution (Python):


S = input()


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

if S == "SUN":
  print(7)
else:
  print(7 - week[S])

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

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

Solution (Python):
S = input()

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

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

Solution (Python):
import sys
from io import StringIO
import unittest
import os



def resolve():
    
    
    

    
    
    
    
    

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



class TestClass(unittest.TestCase):
    def assertIO(self, assert_input, output):
        stdout, sat_in = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(assert_input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, sat_in
        self.assertEqual(out, output)

    def test_input_1(self):
        test_input = """SAT"""
        output = """1"""
        self.assertIO(test_input, output)

    def test_input_2(self):
        test_input = """SUN"""
        output = """7"""
        self.assertIO(test_input, output)

    
    def tes_t_1original_1(self):
        test_input = """データ"""
        output = """データ"""
        self.assertIO(test_input, output)



if __name__ == "__main__":
    if os.environ.get("USERNAME") is None:
        
        resolve()

    else:
        
        unittest.main()

Solution (Python):
import sys
from io import StringIO
import unittest
import os



def resolve():
    
    
    

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



class TestClass(unittest.TestCase):
    def assertIO(self, assert_input, output):
        stdout, sat_in = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(assert_input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, sat_in
        self.assertEqual(out, output)

    def test_input_1(self):
        test_input = """SAT"""
        output = """1"""
        self.assertIO(test_input, output)

    def test_input_2(self):
        test_input = """SUN"""
        output = """7"""
        self.assertIO(test_input, output)

    
    def tes_t_1original_1(self):
        test_input = """データ"""
        output = """データ"""
        self.assertIO(test_input, output)



if __name__ == "__main__":
    if os.environ.get("USERNAME") is None:
        
        resolve()

    else:
        
        unittest.main()

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

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

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

Solution (Python):

"""
A - Can't Wait for Holiday
https://atcoder.jp/contests/abc146/tasks/abc146_a

"""
import sys


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


def main(args):
    S = input()
    ans = solve(S)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[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):
D = dict()
D['SUN'] = 7
D['MON'] = 6
D['TUE'] = 5
D['WED'] = 4
D['THU'] = 3
D['FRI'] = 2
D['SAT'] = 1
print(D[input()])

Solution (Python):
from calendar import day_name
s = input()

for i in range(7):
    if s == day_name[i][:3].upper():

        ans = 6 - i
        if ans == 0: ans += 7

        print(ans)
        break

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

Solution (Python):
S = input()

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

Solution (Python):
s = input()

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

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


if __name__ == "__main__":
    main()

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

print(7-S.index(s))

Solution (Python):
S = input()

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

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

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

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

Solution (Python):
S = input()

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

print(weekday_dict[S])

Solution (Python):
S=input()

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

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

Solution (Python):
s = input()

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

print(left_days_next_sunday[s])

Solution (Python):
S = input()

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

print(week.index(S) + 1)

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

Solution (Python):
print({"SU":7,"MO":6,"TU":5,"WE":4,"TH":3,"FR":2,"SA":1}[input()[:2]])

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

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
s = S()
if s == 'SUN':
    print(7)
elif s == 'MON':
    print(6)
elif s == 'TUE':
    print(5)
elif s == 'WED':
    print(4)
elif s == 'THU':
    print(3)
elif s == 'FRI':
    print(2)
elif s == 'SAT':
    print(1)

Solution (Python):
def cantwaitforholiday(s):

    days = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
    return days[s]

def main():
    s = str(input())
    print(cantwaitforholiday(s))

if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
import sys
import decimal 

def input():
    return sys.stdin.readline().strip()

def main():
    s = input()
    if s[0] == "S":
        if s[1] == "U":
            print(7)
            return
        print(1)
        return
    elif s[0] == "F":
        print(2)
        return
    elif s[0] == "W":
        print(4)
        return
    elif s[0] == "M":
        print(6)
        return
    elif s[1] == "H":
        print(3)
        return
    print(5)
    
    
    
main()

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

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

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

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

Solution (Python):
from sys import stdin
from sys import setrecursionlimit
import bisect
setrecursionlimit(10 ** 7)

s = input()

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

print(7-li.index(s))

Solution (Python):
from statistics import median


from fractions import gcd
from itertools import combinations 
from collections import deque
from collections import defaultdict
import bisect










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

def readInts():
  return list(map(int,input().split()))
def I():
  return int(input())
dic = {'SUN':0,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
print(7 - dic[input()])

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
input = lambda : sys.stdin.readline().rstrip()
mod = 10**9 + 7

days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
d = {}
for i in range(7):
    d[days[i]] = 7 - i
s = input()
print(d[s])

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 ** 19
MOD = 10 ** 9 + 7

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

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

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

Solution (Python):
S = input()

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

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

S = input()[:-1]

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

day = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
a = day.index(s)
ans = 7 - a
if ans == 0:
    print(7)
else:
    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):
import sys
from collections import defaultdict
readline = sys.stdin.buffer.readline



def geta(fn=lambda s: s.decode()):
    return map(fn, readline().split())


def gete(fn=lambda s: s.decode()):
    return fn(readline().rstrip())


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

    print(d[gete()])


if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):

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

Solution (Python):

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

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

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

Solution (Python):
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()
x =['SUN','MON','TUE','WED','THU','FRI','SAT'] 
for i,data in enumerate(x):
  if s == data:
    print(7-i)
    break

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

day = 7 - index
if day == 0:
  print('7')
else:
  print(day)

Solution (Python):

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

Solution (Python):
s = input()

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

print(7-list.index(s))

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

Ss = input().rstrip()

ans = 7 - Ds.index(Ss)
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)
elif s == 'SUN':
    print(7)
else:
    exit()

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

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

Solution (Python):
n=input()
lis=["SUN","MON","TUE","WED","THU","FRI","SAT"]
ans=7
for i in lis:
    if n==i:
        print(ans)
        break
    ans-=1

Solution (Python):



def ri():
    return int(input())

def rl():
    return list(input().split())

def rli():
    return list(map(int, input().split()))

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


if __name__ == '__main__':
    main()

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

S = input().strip()

for i, d in enumerate(w):
    if d == S:
        print(7 - i)

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

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

print(7 - lis.index(S))

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

s = input()

print(7- lis.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):
s=input()
day=['SUN','MON','TUE','WED','THU','FRI','SAT']
for i in range(7):
  if s==day[i]:
    print(7-i)

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

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):
y = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
for i, j in enumerate(y):
    if s == j:
        print(7-i)

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

Solution (Python):
S = input()

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

print(7 - DAYS_TO_NUM[S])

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

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

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

Solution (Python):
S = input()

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

Solution (Python):

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


NAME = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
DIC = dict(zip(NAME, range(7, 0, -1)))


def main():
    S = readline().rstrip().decode()
    print(DIC[S])


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import sys

input = lambda: sys.stdin.readline().rstrip()



def solve():

    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)


if __name__ == '__main__':
    solve()

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

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

print(7-a)

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

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

Solution (Python):
import sys
S = sys.stdin.readline().rstrip()

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"]
print(7-l.index(S))

Solution (Python):
S = input()
l = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-l.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)
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):
from sys import stdin, setrecursionlimit

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


def main():
    input = stdin.buffer.readline
    s = input()[:-1].decode()
    print(7 - WEEK[s])


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

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

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

Solution (Python):
s = input()

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

n = days_of_the_week.index(s)

print(7 - days_of_the_week.index(s))

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

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

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

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

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

Solution (Python):
s = input()

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

day = int(days.index(s))

print(7-day)

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

print(youbi[s])

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

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

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