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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter

mod = 1000000007


def inverse(a):
    return pow(a, mod - 2, mod)


def usearch(x, a):
    lft = 0
    rgt = len(a) + 1
    while rgt - lft > 1:
        mid = (rgt + lft) // 2
        if a[mid] <= x:
            lft = mid
        else:
            rgt = mid
    return lft

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

def main():
    a = input()
    print(7 - s.index(a))

main()

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

Submission status: Accepted

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

week = {'SUN':0, 'MON':1, 'TUE':2 ,'WED':3 ,'THU':4 ,'FRI':5 ,'SAT':6 }
day = input()

print(7 - week[day])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
cnt = -1
ans = 0
for i in day:
    cnt += 1
    if s == i:
        ans = 7 - cnt
        break
print(ans)

Submission status: Accepted

Solution code:
def mainFunc():
    nextSunday = {
        'SUN': 7,
        'MON': 6,
        'TUE': 5,
        'WED': 4,
        'THU': 3,
        'FRI': 2,
        'SAT': 1
    }

    print(nextSunday[input()])



mainFunc()

Submission status: Accepted

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

Submission status: Accepted

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

day = input()
print(mapping[day])

Submission status: Accepted

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

print(mapping[input()])

Submission status: Accepted

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

Submission status: Accepted

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

str = input()
count = 7

for i in s:
    if str == i:
        break
    else:
        count -= 1

print (count)

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    S = input()
    d = {'SUN':7, "MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1}
    if d.get(S, False):
        print(d[S])
    else:
        res = -1
        for i in d.keys():
            if i in S or i.lower() in S:
                res = d[i]
                break
        print(res)

Submission status: Accepted

Solution code:
a = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
S = str(input())
if S == "SUN":
    print(7)
else:
    print(a.index("SUN") - a.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()
day_of_the_week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7 - day_of_the_week.index(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
day = input()

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

Submission status: Accepted

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

s = input()

print(7-youbi_list.index(s))

Submission status: Accepted

Solution code:
import sys

day = input()

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

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

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

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

Submission status: Accepted

Solution code:
def solve(string):
    l = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
    return str(7 - l.index(string))


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

Submission status: Accepted

Solution code:
def solve(string):
    l = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
    return str(7 - l.index(string.strip()))


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read()))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = input()

print(7 if s == 'SUN' else days.index('SUN') - days.index(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)
else:
    print(1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#Stringの場合
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:
day = input()
list_week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
for i in range(7) :
    if day == list_week[i]:
        print(7-i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def cant_wait (): 
    dzien = input()
    dni_tygodnia = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    for i in range(len(dni_tygodnia)): 
        if dni_tygodnia[i]== dzien: 
            print (len(dni_tygodnia) - i)
        
cant_wait()

Submission status: Accepted

Solution code:
a = str(input())

if a == "SUN":
  tmp = 0
elif a == "MON":
  tmp = 1
elif a == "TUE":
  tmp = 2
elif a == "WED":
  tmp = 3
elif a == "THU":
  tmp = 4
elif a == "FRI":
  tmp = 5
elif a == "SAT":
  tmp = 6
else:
  print("Error")

ans = 7- tmp
print(ans)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
week = input()

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

print(7 - ls.index(week))

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

Submission status: Accepted

Solution code:

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

S = input()

i = 0
for day in week:
    if day == S:
        break
    else:
        i = i + 1

after = 7 - i

print(after)

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:
def main():
    N = input().rstrip()
    ans = 0
    if N=="SUN":
        ans = 7
    elif N=="MON":
        ans = 6
    elif N=="TUE":
        ans = 5
    elif N == "WED":
        ans = 4
    elif N == "THU":
        ans = 3
    elif N == "FRI":
        ans = 2
    elif N == "SAT":
        ans = 1
    return ans

if __name__ == "__main__":
    ans = main()
    print(ans)

Submission status: Accepted

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

if s=="SUN":
	ans=7
else:
	while i<len(a):
		if a[i]==s:
			ans=6-i
			break
		i+=1
	
print(ans)

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()
list = ['SUN','MON','TUE','WED','THU','FRI','SAT']
index = 0
for i in list:
    if s == i:
        ans = 7 - index
    index += 1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


def solve(S: str):
    week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    print((-1-week.index(S)) % 7+1)
    return


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

print(A.index(S)+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if S == "SUN":
    num = 0
if S == "MON":
    num = 1
if S == "TUE":
    num = 2
if S == "WED":
    num = 3
if S == "THU":
    num = 4
if S == "FRI":
    num = 5
if S == "SAT":
    num = 6
print("{}".format(7-num))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
day=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, os
import collections

MOD = 10 ** 9 + 7

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

  target = input_stream.readline().strip()
  return [str(table[target])]

def read_ints(input_stream):
  return [i for i in map(int, input_stream.readline().strip().split())]

def read_int(input_stream):
  return int(input_stream.readline().strip())


if __name__ == "__main__":
    outputs = solve(sys.stdin)
    for line in outputs:
      print(line)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

S = str(input())

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

print(7 - day.index(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

print(7-cmd)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def do_code():
    s = input()
    weekday = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    weekday.reverse()
    i = weekday.index(s)
    print((i + 1) % 8)


if __name__ == "__main__":
    do_code()

Submission status: Accepted

Solution code:
#A

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

for i in range(len(week)):
    if S == week[i]:
        print(i)

Submission status: Accepted

Solution code:
S = input()

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

for i in day:
  if i == S:
    print(counter)
  counter = counter - 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import os

n = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Can't Wait for Holiday
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
next_sunday = 7 - days.index(S)
print(next_sunday)

Submission status: Accepted

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

inp = input().upper()

print(7-week.index(inp))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(s[S])

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:

def main(S):
    res = {v: k for k, v in enumerate('SAT FRI THU WED TUE MON SUN'.split(' '))}[S] + 1
    print(res)


if __name__ == "__main__":
    S = input('')
    main(S)

Submission status: Accepted

Solution code:
# ABC146
def main():
    S = input().rstrip()
    days = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
    dic = {day: 7 - i for i, day in enumerate(days)}
    print(dic[S])


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
input =str(input())

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

print(7-days.index(input))

Submission status: Accepted

Solution code:
S=input()
l=["","SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in range(1,8):
  if l[i]==S:
    print(i)

Submission status: Accepted

Solution code:
# 日:1 月:2 火:3 水:4 木:5 金:6 土:7
x = {}
x['SUN']=7
x['MON']=1
x['TUE']=2
x['WED']=3
x['THU']=4
x['FRI']=5
x['SAT']=6

S = input()
if S=='SUN':
  print(7)
else:
  print(7-x[S])

Submission status: Accepted

Solution code:
s = input()
weekday = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
weekday.reverse()
i = weekday.index(s)
print((i + 1) % 8)

Submission status: Accepted

Solution code:
how_days_until_sun = {"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
i = input()
print(how_days_until_sun[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:
a = input()
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
ans1 = 0
for i in week:
  if i == a:
    ans1 = week.index(i)
    break
    
print(7-ans1)

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 = input()
if(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)
elif(a=="SUN"):
  print(7)

Submission status: Accepted

Solution code:
s=input()
if s[0]=="S" or s[0]=="T":
  if s[2]=="E":
    print('5')
  elif s[2]=='U':
    print('3')
  elif s[2]=='T':
    print('1')
  else:
    print('7')
else:
  if s[1]=='R':
    print('2')
  elif s[1]=='O':
    print('6')
  else:
    print('4')

Submission status: Accepted

Solution code:
A = input()
if 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)
elif A =="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:
  pass

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 == "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'];
day = input();

for x in range(0,7):
	if days[x] == day:
		print(7-x);

Submission status: Accepted

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

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

print(7-list.index(s))

Submission status: Accepted

Solution code:
s = input()

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

print(7-list.index(s))

Submission status: Accepted

Solution code:

S = input()
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']

if S in week:
    i = week.index(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:
table = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
print(table[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)
else:
  print(1)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

print(7 - li.index(S))

Submission status: Accepted

Solution code:
d = ["-","SAT","FRI","THU","WED","TUE","MON","SUN"]
S = input()
for n,s in enumerate(d):
    if s == S:
        print(n)

Submission status: Accepted

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

Submission status: Accepted

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

if arg1 == "SUN":
    print("7")
elif arg1 == "MON":
    print("6")
elif arg1 == "TUE":
    print("5")
elif arg1 == "WED":
    print("4")
elif arg1 == "THU":
    print("3")
elif arg1 == "FRI":
    print("2")
elif arg1 == "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:
d = input()

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

print(days[d])

Submission status: Accepted

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

print(7 - week.index(today))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=str(input())

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

print(7-A.index(S))

Submission status: Accepted

Solution code:
S = input()

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

print(youbi[S])

Submission status: Accepted

Solution code:
S = input()

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

print(mp[S])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import math
from bisect import bisect_left
from bisect import bisect_right
import collections
import copy
import heapq
from collections import defaultdict
from heapq import heappop, heappush
import itertools
input = sys.stdin.readline
 
##### リストの 二分木検索 #####
# bisect_left(lists, 3)
# bisect_right(lists, 3)
 
##### プライオリティキュー #####
# heapq.heapify(a) #リストaのheap化
# heapq.heappush(a,x) #heap化されたリストaに要素xを追加
# heapq.heappop(a) #heap化されたリストaから最小値を削除＆その最小値を出力
 
# heapq.heappush(a, -x) #最大値を取り出す時は、pushする時にマイナスにして入れよう
# heapq.heappop(a) * (-1) #取り出す時は、-1を掛けて取り出すこと
 
##### タプルリストのソート #####
# sorted(ans) #(a, b) -> 1st : aの昇順, 2nd : bの昇順
# sorted(SP, key=lambda x:(x[0],-x[1])) #(a, b) -> 1st : aの昇順, 2nd : bの降順
# sorted(SP, key=lambda x:(-x[0],x[1])) #(a, b) -> 1st : aの降順, 2nd : bの昇順
# sorted(SP, key=lambda x:(-x[0],-x[1])) #(a, b) -> 1st : aの降順, 2nd : bの降順
 
# sorted(SP, key=lambda x:(x[1])) #(a, b) -> 1st : bの昇順
# sorted(SP, key=lambda x:(-x[1])) #(a, b) -> 1st : bの降順
 
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    ans = {
    "SUN": 7,
    "MON": 6,
    "TUE": 5,
    "WED": 4,
    "THU": 3,
    "FRI": 2,
    "SAT": 1
    }
    S = input()
    S = S[:-1]
    
    print(ans[S])
    
    
if __name__ == "__main__":
	main()

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:
l = ['XXX','SAT','FRI','THU','WED','TUE','MON','SUN'] #次の日曜日までの日数順
a = input()
print(l.index(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input().strip()
d={k:i for i,k in zip(range(7,0,-1),"SUN,MON,TUE,WED,THU,FRI,SAT".split(","))}
print(d[S])

Submission status: Accepted

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

num = days.index(today)
num = num%7
nextsun = 7-num
print(nextsun)

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

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()
cnt = 0
for i in range(7):
    if A[i] == S:
        break;
    cnt += 1
print(7 - cnt)

Submission status: Accepted

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

for i in range(7):
    if x == lst[i]:
        print(7-i)
        break

Submission status: Accepted

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

s = input()

print(result[s])

Submission status: Accepted

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

Submission status: Accepted

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