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

Submission status: Accepted

Solution code:
Day_Week_S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

# 次の日曜日が何日後か求めよ
if S == "SUN":
    print(7)

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

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)

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

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

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

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

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

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

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

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

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 = str.upper(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:
# 次の日曜日が何日後か出力

answer = input ()

if answer == "SUN":
    print("7")
elif answer == "MON":
    print("6")
elif answer == "TUE":
    print("5")
elif answer == "WED":
    print("4")
elif answer == "THU":
    print("3")
elif answer == "FRI":
    print("2")
elif answer == "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:
s = input()
l = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7 - (l.index(s)))

Submission status: Accepted

Solution code:
#146A

#1.入力をちゃんと受け取ること
s=input()
#2.結果を出力する
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')
else:
    print('Error')

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 ()
 
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:
# A, Can'tWait for Holiday
# 今日の曜日を表す文字列Sが与えられます。
# Sは'SUN','MON','TUE','WED','THU','FRI','SAT'のいずれかであり、それぞれ日曜日、月曜日、火曜日。水曜日、木曜日、金曜日、土曜日を表します。
# 月の日曜日（あす以降）が何日後か求めてください。

# Sは'SUN','MON','TUE','WED','THU','FRI','SAT'のいずれか。

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

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

if S == 'SUN':
    print(7)
else:
    print((7 - days[S]) % 7)

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

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

print(output)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#146A

# S(今日の曜日）：標準入力
S = input()

# SはSUN,MON,TUE,WED,THU,FRI,SAT のいずれか
#　次の日曜日が何日後か、if-else
# 条件分岐その2：if-else
# 条件分岐その3：if-elif-else
# ある条件の時は○○,他の条件の時は△△

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 今日の曜日を表す文字列 Sが与えられます。
# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれかであり、
# それぞれ日曜日、月曜日、火曜日、水曜日、木曜日、金曜日、土曜日を表します。
# 次の日曜日 (あす以降) が何日後か求めてください。

# 標準入力から曜日（S）を取得する
input_weekday = input()

# 次の日曜日はあと何日後かを計算して出力する
result = 0
if input_weekday == 'SUN':
    result = 7
elif input_weekday == 'MON':
    result = 6
elif input_weekday == 'TUE':
    result = 5
elif input_weekday == 'WED':
    result = 4
elif input_weekday == 'THU':
    result = 3
elif input_weekday == 'FRI':
    result = 2
elif input_weekday == 'SAT':
    result = 1

print(result)

Submission status: Accepted

Solution code:
weekday = input()

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

next = 7 - list.index(weekday)

print(next)

Submission status: Accepted

Solution code:
weekday = input()

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

for i in list:
    if weekday == i:
        daynum = list.index(weekday)

next = 7 - daynum

print(next)

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

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

    ans = 7 - lst.index(S)

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def main():
    S = input()

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

    ans = 6 - lst.index(S)

    if ans == 0:
        ans = 7

    print(ans)


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

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

Submission status: Accepted

Solution code:
#146
S = input()

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

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

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

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

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#変b数のまとめの入力についてsplitとインデックスで価を特定させる

youbi = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
a = input()
print(7 - youbi.index(a))

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

Submission status: Accepted

Solution code:
S = input ()
week = ['SAT','FRI','THU','WED','TUE','MON','SUN']
for i in range (7):
  if S == week[i]:
    print (i+1)
    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)
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:
# A - Can't Wait for Holiday

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

Submission status: Accepted

Solution code:
# A - Can't Wait for Holiday

S = input()

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

Submission status: Accepted

Solution code:
# 146a                     
# 今日の曜日を表す文字列 S が与えられます。   
# S は SUN,MON,TUE,WED,THU,F
# それぞれ日曜日、月曜日、火曜日、水曜日、木曜日、金
# 次の日曜日 (あす以降) が何日後か求めてください
                           
                           
# S に入力されたSUN,MON,TUE,WED,T
S = input()                
                           
                           
                           
# if文で入力に対応した答えを返す         
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 == 'MON':
    print("6")

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

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

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

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

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

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

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:
  
# Can't Wait for Holiday

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

Submission status: Accepted

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

for index, day in enumerate(days):
    if Day_of_the_week == day:
        print(7 - index)

Submission status: Accepted

Solution code:
# 今日の曜日を表す文字列 S
# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれか
# 次の日曜日 (あす以降) が何日後か

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

for index, day in enumerate(days):
    if Day_of_the_week == day:
        print(7 - index)

Submission status: Accepted

Solution code:
#   AtCoder abc146_a

#   入力
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':
    print(int(7))
elif s == 'MON':
    print(int(6))
elif s == 'TUE':
    print(int(5))
elif s == 'WED':
    print(int(4))
elif s == 'THU':
    print(int(3))
elif s == 'FRI':
    print(int(2))
elif s == 'SAT':
    print(int(1))
else:
    print('曜日が入力されていません')

Submission status: Accepted

Solution code:
S = input()

if S == 'SUN':
    answer = 7

elif S == 'MON':
    answer = 6

elif S == 'TUE':
    answer = 5

elif S == 'WED':
    answer = 4

elif S == 'THU':
    answer = 3

elif S == 'FRI':
    answer = 2

elif S == 'SAT':
    answer = 1

print(answer)

Submission status: Accepted

Solution code:

S = input()

if S == 'SUN':
    answer = 7
elif S == 'MON':
    answer = 6
elif S == 'TUE':
    answer = 5
elif S == 'WED':
    answer = 4
elif S == 'THU':
    answer = 3
elif S == 'FRI':
    answer = 2
elif S == 'SAT':
    answer = 1
else:
    answer = '入力間違い【SUN】【MON】【TUE】【WED】【THU】【FRI】【SAT】を入力'

print(answer)

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()という命令を使い、入力待機状態にする
#つまり、曜日ｓを入力したら、答えを出してくれるようプログラムする

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:
# 146A
S = input()

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

print(answer)

Submission status: Accepted

Solution code:
S = input()
wait_day = 0

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

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

elif S =='SAT':
    print(1)

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)
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('入力に誤りがあります。SUN,MON,TUE,WED,THU,FRI,SATのいずれかを入力してください。')

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 146A
# 今日の曜日を表す文字列 S が与えられます。
# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれかであり、
# それぞれ日曜日、月曜日、火曜日、水曜日、木曜日、金曜日、土曜日を表します。
# 次の日曜日 (あす以降) が何日後か求めてください。

# 入力: 入力は以下の形式で標準入力から与えられる。
# S
# 出力: 次の日曜日が何日後か出力せよ。

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

print(result)

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 が与えられます。
# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれかであり、
# それぞれ日曜日、月曜日、火曜日、水曜日、木曜日、金曜日、土曜日を表します。
# 次の日曜日 (あす以降) が何日後か求めてください。

# 入力: 入力は以下の形式で標準入力から与えられる。
# S
# 出力: 次の日曜日が何日後か出力せよ。

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

print(result)

Submission status: Accepted

Solution code:
print(['SAT','FRI','THU','WED','TUE','MON','SUN'].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')
elif S == 'SAT':
    print('1')
else:
    print('入力エラー')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_date_list = ['SUN','MON','TUE','WED','THU','FRI','SAT' ]
S = input()
today_date_list = ['日','月','火','水','木','金','土']
s1 = input_date_list.index(S)
today_date = (today_date_list[s1])
s2 = 7 - s1
print(s2)

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:
# 146a https://atcoder.jp/contests/abc146/tasks/abc146_a

# 入力
S = input()
# 処理
if S == 'SUN':
    answer = 7
elif S == 'MON':
    answer = 6
elif S == 'TUE':
    answer = 5
elif S == 'WED':
    answer = 4
elif S == 'THU':
    answer = 3
elif S == 'FRI':
    answer = 2
elif S == 'SAT':
    answer = 1
else:
    answer = '入力エラー'
# 出力
print(answer)

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)

def _S(): return sys.stdin.readline().rstrip()
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())

def main():
    S = _S()
    youbi = ["MON","TUE","WED","THU","FRI","SAT","SUN"][::-1]
    print(youbi.index(S) if S!="SUN" else 7)

main()

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)
else:
  print("入力内容が間違っています。")

Submission status: Accepted

Solution code:
input_date_list = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
today_date_list = ['日', '月', '火', '水', '木', '金', '土']
s1 = input_date_list.index(S)
today_date = (today_date_list[s1])
s2 = 7 - s1
print(s2)

#print("今日は{0}曜日です。".format(today_date)+"次の日曜日は{0}日後です".format(s2))

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:
# 146A
# 日曜日が何日後なのか

# 入力
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:
weekday = ['SUN', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON']
val = input()
if val == 'SUN':
    print("7")
else:
    print(weekday.index(val))

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')
elif S == 'SAT':
    print('1')
else:
    print('以下の表記で入力してください。（例：「月曜日」=> 「MON」')

Submission status: Accepted

Solution code:
# 146a

#日曜からの日数を指定
SUN_N = 0
MON_N = 1
TUE_N = 2
WED_N = 3
THU_N = 4
FRI_N = 5
SAT_N = 6

S = input() # 曜日を入力

if S == 'SUN':
    From_days = SUN_N
elif S == 'MON':
    From_days = MON_N
elif S == 'TUE':
    From_days = TUE_N
elif S == 'WED':
    From_days = WED_N
elif S == 'THU':
    From_days = THU_N
elif S == 'FRI':
    From_days = FRI_N
elif S == 'SAT':
    From_days = SAT_N
else:
    From_days = -99

To_days = 7 - From_days

print(To_days)

Submission status: Accepted

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

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

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