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

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


if __name__ == '__main__':
    main()

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)
elif s=="FRI":
    print(2)

Submission status: Accepted

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

print(7-r.index(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(7-weekdays.index(s))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
print('SAFRTHWETUMOSU'.find(input()[:2])//2+1)

Submission status: Accepted

Solution code:
week_list = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
week_list.reverse()

print(week_list.index(input()) + 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:
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()
a = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
i = 0
for num,day in enumerate(a):
  if s == day:
    i = 7 - num

print(i)

Submission status: Accepted

Solution code:
str = input()

if str == "SUN":
  print("7")
elif str == "MON":
  print("6")
elif str == "TUE":
  print("5")
elif str == "WED":
  print("4")
elif str == "THU":
  print("3")
elif str == "FRI":
  print("2")
elif str == "SAT":
  print("1")
else:
  print("入力ミスです")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = ['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
s = input()
for num, i in enumerate(w):
  if i == s:
    print(num+1)

Submission status: Accepted

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

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

Submission status: Accepted

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

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="SUN,MON,TUE,WED,THU,FRI,SAT".split(',')
d=list(range(7,0,-1))
m=dict(zip(s,d))

print(m[input()])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
DAYS = {x.strip():i for i, x in enumerate("SUN, MON, TUE, WED, THU, FRI, SAT".split(","))}
S = input().strip()
L = 7 - DAYS[S]
if L == 0:
  L+= 7
print(L)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
L = ['SAT','FRI','THU','WED','TUE','MON','SUN']
for i,l in enumerate(L):
  if S == l:
    print(i+1)
    break

Submission status: Accepted

Solution code:
dayss = input()
days = ['SAT','FRI','THU','WED','TUE','MON','SUN']
for i,day in enumerate(days):
    if day == dayss:
      print(str(i+1))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(dayMap[S])

Submission status: Accepted

Solution code:
import sys

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


# rstrip().decode('utf-8')
# INF=float("inf")
#MOD=10**9+7
# sys.setrecursionlimit(2147483647)
# import math
#import numpy as np
# import operator
# import bisect
# from heapq import heapify,heappop,heappush
#from math import gcd
# from fractions import gcd
# from collections import deque
# from collections import defaultdict
# from collections import Counter
#from itertools import accumulate
# from itertools import groupby
# from itertools import permutations
# from itertools import combinations
# from scipy.sparse import csr_matrix
# from scipy.sparse.csgraph import floyd_warshall
# from scipy.sparse.csgraph import csgraph_from_dense
# from scipy.sparse.csgraph import dijkstra
# map(int,input().split())


def main():
	s=input().rstrip().decode('utf-8')
	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__":
		main()

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline


def main():
    S = input().strip()

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

    print(7 -WEEK.index(S))


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

nextsunday()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

n = Week.index(S)
print(7-n)

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

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

number_days_next_sunday = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}
weekday = input()

if weekday not in number_days_next_sunday:
    sys.exit(1)
    
print(number_days_next_sunday[weekday])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
j=0
ref=["SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in range(7):
  if S==ref[i]:
    j=i+1
print(j)

Submission status: Accepted

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

Submission status: Accepted

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

len = data.index(s)

print(7 - len)

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:
#!/usr/bin/python3
# coding: utf-8

# 整数 > 整数型
def I(): return int(input())

# 整数列 '1 2 3 4' > 整数型リスト
def IsIl(): return list(map(lambda x: int(x), input().split()))

# 改行挟む整数列　'1/n 2/n 3/n' > 整数型りすと
def InIl(n): return [input() for i in range(n)]

# 整数列 '1 2' > 整数型タプル
def IsIt(): return map(lambda x: int(x), input().split())

# 改行挟む整数列　'1\n 2\n 3\n' > 整数型たぷる
def InIl(n): return map(input() for i in range(n))

# 文字列 'abcd' > 文字型リスト
def SsSl(): return list(map(lambda x: x, input()))

# 整数 '1234' > 整数型リスト

# 文字列 'aba' > 辞書（文字型:個数）{'a':2,'b':1}
def SSd():
    from collections import defaultdict
    A = input() # [int(i) for i in input().split()]
    dd=defaultdict(int)
    for a in A:
        dd[a]+=1
    return dd

#リストにn個要素を読み込む

# その他アルゴリズムテンプレート
# https://qiita.com/chun1182/items/ddf2b6cba932b2bb0d4e


day = input()

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

print(day_lis[day])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

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


if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

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

week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
day_num = 0
for num,day in enumerate(week):
    if S == day:
        day_num = 7 - num
        
print(day_num)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#ABC-146-A
S = str(input())
days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(len(days)):
    if S == days[i]:
        print(7-i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dic = {'SUN':7,'SAT':1,'FRI':2,'THU':3,'WED':4,'TUE':5,'MON':6}
s=input()
print(dic[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:
# -*- coding:utf-8 -*-
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:
week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

S = input()

next_sunday = 7 - week.index(S)

print(next_sunday)

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")
else:
    print("無効な入力です")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())
D = ["SUN","MON","TUE","WED","THU","FRI","SAT"] 
print(7-D.index(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:
# coding: utf-8
# Your code here!

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 -*-


def main():
    s = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
day = ['SUN','MON','TUE','WED','THU','FRI','SAT'][::-1]
dic = {d:i+1 for i,d in zip(range(len(day)),day)}
print(dic[input()])

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:
next_sun = {
    'SUN':7,
    'MON':6,
    'TUE':5,
    'WED':4,
    'THU':3,
    'FRI':2,
    'SAT':1
}

to_SUN = next_sun[input()]

print(to_SUN)

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

Submission status: Accepted

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

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

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

print(7-L.index(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

yobi=['SUN','MON','TUE','WED','THU','FRI','SAT']
for i,y in enumerate(yobi[::-1]):
  if y==S:
    print(i+1)
    break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
print({
    'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1,
}[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:
import sys
input = sys.stdin.readline

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:
yobi = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
yobi.reverse()
s = input()
for i in range(7):
  if s == yobi[i]:
    print(i+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
day=input()

if 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")
elif day=="SUN":
	print("7")
else:
	print("0")

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

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

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

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

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

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:
# get the date as a string
s = input()

WEEKDAYS=['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
integer_day = WEEKDAYS[::-1].index(s) + 1
print(integer_day)

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)
elif S=="FRI":
  print(2)

Submission status: Accepted

Solution code:
s=input()
if s[0]=="M":
  print(6)
elif s[0]=="W":
  print(4)
elif s[0]=="F":
  print(2)
else:
  if s=="SUN":
    print(7)
  elif s=="TUE":
    print(5)
  elif s=="THU":
    print(3)
  else:
    print(1)

Submission status: Accepted

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

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

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

print(7 - lis.index(S))

Submission status: Accepted

Solution code:
def main():
  S = input()
  day = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
  count = 7
  for i in day:
    if S == i:
        print(count)
    count -= 1

if __name__ == '__main__':
  main()

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

s = input()

print(d[s])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


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


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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()
kw = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3 , 'FRI': 2, 'SAT': 1}
print(kw[s])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(7-ls.index(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
S = stdin.readline().rstrip()
dic = {'SUN':0, 'MON':1, 'TUE':2, 'WED':3, 'THU':4, 'FRI':5, 'SAT':6}
print(7-dic[S])

Submission status: Accepted

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

print(week[d])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

S = input().rstrip()
vD = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
#print(vD)

res = 7 - vD.index(S)

print(res)

Submission status: Accepted

Solution code:
S = input()

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

ans = week[S]

print(ans)

Submission status: Accepted

Solution code:
s = input()

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

print(l.index(s)+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

S = input()

n = daystr.index(S)

print("{}".format(7-n))