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.



Sample input:
SAT


Sample output:
1

Submission status: Accepted

Solution code:
S = input().strip()
list = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
i = 7
for item in list:
  if (S == item):
    print(i)
  i -= 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
# リストの準備
daylist = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
# 文字列の入力
s = input()
# indexの検索
if s in daylist:
    a = daylist.index(s)
    print(7 - a)
else:
    print("{} is not day of week".format(s))

Submission status: Accepted

Solution code:
#入力
day = input()


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

print(answer)

Submission status: Accepted

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

print(dic[input()])

Submission status: Accepted

Solution code:
s = input()

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

index = days.index(s)

print(7 - index)

Submission status: Accepted

Solution code:
yobi = ['SUN','MON','TUE','WED','THU','FRI','SAT']
tugi = [7,6,5,4,3,2,1]
S = input()
print(tugi[(yobi.index(S))])

Submission status: Accepted

Solution code:
s = str(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')

Submission status: Accepted

Solution code:
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
days = reversed(days)
days = {day:i+1 for i, day in enumerate(days)}

print(days[input()])

Submission status: Accepted

Solution code:
S=input()
L=['MON','TUE','WED','THU','FRI','SAT','SUN']
ans=0

for i in range(6):
    if S==L[i]:
        ans=6-i

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

Submission status: Accepted

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

print(days[S])

Submission status: Accepted

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

S = input()

print(7 - days.index(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = input()

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

print(d[i])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
data = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
week = ('SUN','MON','TUE','WED','THU','FRI','SAT')

for index, day in enumerate(week):
  if s == day:
    print(7-index)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if s == 'SUN':
    print 7
else:
    idx = days.index(s) + 1
    print 7 - idx

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

if s != 'SUN':
  print(7 - dict.index(s))
else:
  print(7)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'].index(input()) % 7 + 1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
day = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input() # sを取得し、strに値を入れる
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("error!")

Submission status: Accepted

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

print(7-DAY.index(S))

Submission status: Accepted

Solution code:
s = input()

l = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
t = list(reversed(l))
#print(list(t)[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(19):
	if week[i]==s:
		print(7-i)
		exit()

Submission status: Accepted

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

i1 = day.index(s)
i2 = 7 - i1
if i2 == 0:
  i2 = 7

print(i2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
S = input()
days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
days = days[::-1]
ix = days.index(S)
print((ix + 1))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
weeks = {'MON': '1', 'TUE': '2', 'WED': '3', 'THU': '4', 'FRI': '5', 'SAT': '6', 'SUN': '0'}
s = input()
print(7-int(weeks.get(s)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
s = input()

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

print(w[s])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
today = input()

if today == 'SUN' :
	ans = 7
if today == 'MON' :
	ans = 6
if today == 'TUE' :
	ans = 5
if today == 'WED' :
	ans = 4
if today == 'THU':
	ans = 3
if today == 'FRI' :
	ans = 2
if today == 'SAT' :
	ans = 1

print(ans)

Submission status: Accepted

Solution code:
week_cicle = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
day_of_week = input()
first = week_cicle.index(day_of_week)
print(7 - first)

Submission status: Accepted

Solution code:
input_line = input()

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

Submission status: Accepted

Solution code:
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    d = {v: 7 - i for i, v in enumerate("SUN,MON,TUE,WED,THU,FRI,SAT".split(","))}
    print(d[str(readline().rstrip().decode('utf-8'))])


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(hoge.get(s))

Submission status: Accepted

Solution code:
a = input()
days = ("MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN")
count = 6
for index, value in enumerate(days):
    if a == "SUN":
        count = 7
    elif (a == value):
        count -= index
print(count)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10000000)
# input = sys.stdin.readline
# from bisect import *
# from collections import *
# from heapq import *
# import functools
# import itertools
# import math
INF = float('inf')
MOD = 10**9+7

S = 'SUN,MON,TUE,WED,THU,FRI,SAT'.split(',')
print(7-S.index(input()))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

S=str(input())
print(week[S])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def main():
    S = str(input())

    if(S=="SUN"):
        print('7')

    if(S=="MON"):
        print('6')

    if(S=="TUE"):
        print('5')

    if(S=="WED"):
        print('4')

    if(S=="THU"):
        print('3')

    if(S=="FRI"):
        print('2')

    if(S=="SAT"):
        print('1')

    sys.exit()

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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('No data')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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)

Submission status: Accepted

Solution code:
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)
else:
	print(2)

Submission status: Accepted

Solution code:
y = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

s = input()

for i in range(7):
    if s == y[i]:
        if i == 0:
            print(7)
        else:
            print(7 - i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
day = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

i = input()

print(d[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
list = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
i = list.index(s)
i = 7 - i % 7
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve(s: str) -> int:
    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
    elif s == 'SAT':
        return 1


s = input().strip()
print(solve(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
from itertools import permutations
from itertools import combinations

#input = sys.stdin.readline
sys.setrecursionlimit(10**7)
S = input()

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

print(7-l.index(S))

Submission status: Accepted

Solution code:
s = input()

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

for i, day in enumerate(days):
    if s == day:
        print(7 - i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ar = ['SUN',"MON","TUE","WED","THU","FRI","SAT"]
a = input()
if ar.index(a) == 0:
  print(7)
else:
  print(7 - ar.index(a))

Submission status: Accepted

Solution code:
s = input()

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

print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

print(WEEKS.get(WEEK))

Submission status: Accepted

Solution code:
n = input()

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

for i, d in enumerate(day_of_the_week):
  if d == n:
    print(i)

Submission status: Accepted

Solution code:
a = input()
b = 0
if a == "SAT":
    b = 1
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
print(b)

Submission status: Accepted

Solution code:
usrInput = input()

if usrInput == "SUN":
    DayPlace = 0
elif usrInput == "MON":
    DayPlace = 1
elif usrInput == "TUE":
    DayPlace = 2
elif usrInput == "WED":
    DayPlace = 3
elif usrInput == "THU":
    DayPlace = 4
elif usrInput == "FRI":
    DayPlace = 5
elif usrInput == "SAT":
    DayPlace = 6

finalOutput = 7 - DayPlace
print(finalOutput)

Submission status: Accepted

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


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
v = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
i = 7
for w in v:
  if s != w:
    i -= 1
  else:
    print(i)
    break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

Solution code:
inp = str(input())

dic = { "SUN":7, "MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1}
print(dic.get(inp))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
l = [ "SUN","MON","TUE","WED","THU","FRI","SAT"]
S = input()
print(7 - l.index(S))

Submission status: Accepted

Solution code:
S = input()

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

print(7 - l.index(S))

Submission status: Accepted

Solution code:
s=input()
#SUN,MON,TUE,WED,THU,FRI,SAT 

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = read().rstrip().decode('utf-8')

weekday = "SUN,MON,TUE,WED,THU,FRI,SAT".split(',')

dic = {x:7 - i for i, x in enumerate(weekday)}
print(dic[S])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']

b = input()

for i, c in enumerate(a):
  if c == b:
    break
ans = ((7 - i) % 7) or 7
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
DAY = {'SUN': 0, 'MON': 1, 'TUE': 2, 'WED': 3, 'THU': 4, 'FRI': 5, 'SAT': 6}
S = input()

print(7-DAY[S])

Submission status: Accepted

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

Submission status: Accepted

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

input_day = input()
for d in days:
  if input_day == d:
    print(7 - days.get(d))
    break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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