Problem:


Score : 100 points

Problem Statement

Given is a string S representing the day of the week today.

S is SUN, MON, TUE, WED, THU, FRI, or SAT, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.

After how many days is the next Sunday (tomorrow or later)?

Constraints

S is SUN, MON, TUE, WED, THU, FRI, or SAT.

Input

Input is given from Standard Input in the following format:

S

Output

Print the number of days before the next Sunday.

Sample Input 1

SAT

Sample Output 1

1

It is Saturday today, and tomorrow will be Sunday.

Sample Input 2

SUN

Sample Output 2

7

It is Sunday today, and seven days later, it will be Sunday again.



Sample input:
SAT


Sample output:
1

Submission status: Accepted

Solution code:
s = input()

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

ans = 6 - d[s] + 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

for i in range(len(dow)):
    if dow[s] == 'SUN' and ans > 0:
        break
    else:
        ans += 1
        s += 1
        if s > 6:
            s = 0
print(ans)

Submission status: Accepted

Solution code:
s = input()

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

print(table[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:

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li = ['SAT','FRI','THU','WED','TUE','MON','SUN']
x = input()
print(li.index(x)+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":
        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:
str_d = input().replace("SUN","7").replace("MON","6").replace("TUE","5").replace("WED","4").replace("THU","3").replace("FRI","2").replace("SAT","1")
ans = int(str_d)
print(ans)

Submission status: Accepted

Solution code:
from collections import defaultdict as DD
A =DD(int)
D = {"MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1, "SUN":7 }

T = input()
print (D[T])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

ans = 0
S = input()
weeklist = ['SUN','MON','TUE','WED','THU','FRI','SAT']
numlist  = list(range(7))
weekdic = dict(zip(weeklist,numlist))


ans = 7 - weekdic[S]
print(ans)

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()
dates = (("SUN", 7),
         ("MON", 6),
         ("TUE", 5),
         ("WED", 4),
         ("THU", 3),
         ("FRI", 2),
         ("SAT", 1),
         )
for date in dates:
    if S == date[0]:
        print(date[1])

Submission status: Accepted

Solution code:
s = input()

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

print(aa[s])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()

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

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:
def ints():
  return [int(x) for x in input().split()]
def readi():
  return int(input())

ws = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
w = input()

i = ws.index(w)
print(7-i)

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

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

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

S = input()

print(week[S])

Submission status: Accepted

Solution code:
# coding: utf-8
import sys


def main(argv=sys.argv):
  week = {'MON':6, 'TUE':5 , 'WED':4 , 'THU':3, 'FRI':2, 'SAT':1, 'SUN':0}
  
  day = input()
  
  if day == 'SUN':
    print(7)
    
  else:
    print(week[day])

  return 0


if __name__ == '__main__':
  sys.exit(main())

Submission status: Accepted

Solution code:
# coding: utf-8
import sys


def main(argv=sys.argv):

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

    today = input()

    days = weekdays.index('SUN') - weekdays.index(today)

    if days == 0:
        
        days = 7

    print(days)

    return 0


if __name__ == '__main__':
    sys.exit(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)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
arr = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
dict = {i : idx for idx, i in enumerate(arr)}
arr = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
s = input()
print(7-dict[s])

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

for i, day in enumerate(week):
	if day == today:
		print(7 - i)
		sys.exit()

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(len(l)):
  if l[i] == today:
    print(7-i)
    exit()

Submission status: Accepted

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

S=input()

print(dict[S])

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
def calc_aft(ystr):
    youbi = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    if(ystr in youbi):
        return 7-youbi.index(ystr)
    else:
        return

print(calc_aft(input()))

Submission status: Accepted

Solution code:
S = input()

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

print(week[S])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = input()
i = 0

#print(youbi[0])
while(i<=7):

	if youbi[i] == s:
		print(7-i)
		break
	i+=1

Submission status: Accepted

Solution code:
k=["MON","TUE","WED","THU","FRI","SAT"]
s=input()
j="SUN"
if(s==j):
  print(7)
else:
  for a,i in enumerate (k):
    if(s==i):
      print(6-a)

Submission status: Accepted

Solution code:
def when_sunday(day):
    week_d = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
    if day == "SUN":
        return 7
    return 6 - week_d.index(day)
  
print(when_sunday(input()))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
INF = float("inf")#無限大の設定1
IINF = 10 ** 18#無限大の設定2
MOD = 10 ** 9 + 7#まれに用いるmodを予め設定しておく
n = (stdin.readline().rstrip())
#l = list(map(int, stdin.readline().rstrip().split()))
#A, B, C = map(int, stdin.readline().rstrip().split())
#S = [list(stdin.buffer.readline().decode().rstrip()) for _ in range(h)]
S =['SUN','MON','TUE','WED','THU','FRI','SAT']
a = S.index(n)
print(len(S) - a)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

sen = input()

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

index = day.index(sen)
if(6 - index == 0):
    result = 7
else:
    result = 6 - index
print(result)

Submission status: Accepted

Solution code:
s = input()
w = ['SUN','MON','TUE','WED','THU','FRI','SAT']
for i in range(len(w)):
    if s == w[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:
dic = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
S = input()
print(dic[S])

Submission status: Accepted

Solution code:
if __name__=='__main__':
    s=input()
    list=['MON','TUE','WED','THU','FRI','SAT','SUN']
    n=abs(list.index(s)-list.index('SUN'))
    if n==0:
        n=7
    print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
char=input()

week=("SUN","MON","TUE","WED","THU","FRI","SAT")

print(7-week.index(char))

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

day = sys.stdin.read().strip()

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

day_index = days.index(day)

print(7-day_index)

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()
p = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
if S == p[0]:
    print(7)
elif S == p[1]:
    print(6)
elif S == p[2]:
    print(5)
elif S == p[3]:
    print(4)
elif S == p[4]:
    print(3)
elif S == p[5]:
    print(2)
elif S == p[6]:
    print(1)

Submission status: Accepted

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

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

Submission status: Accepted

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

print(week[input()])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
week_and_toSunday = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}
todays_day = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

a = stdin.readline().rstrip()

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

print(7-int(week.get(a)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

i = days[input()]

if i!=0:
    print(7-i)
else:
    print(7)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)
# input = sys.stdin.readline
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')

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

print(7-D.index(S))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

t = s.index(today)
print(7- t)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7
input=lambda:sys.stdin.readline().rstrip()
def resolve():
    S=input()
    D=[None,"SAT","FRI","THU","WED","TUE","MON","SUN"]
    print(D.index(S))
resolve()

Submission status: Accepted

Solution code:
pairs = (
    ("SUN", 7),
    ("MON", 6),
    ("TUE", 5),
    ("WED", 4),
    ("THU", 3),
    ("FRI", 2),
    ("SAT", 1)
)

date = input()
for pair in pairs:
    if pair[0] == date:
        print(pair[1])

Submission status: Accepted

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

print(a)

Submission status: Accepted

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

S = input()
print(7 - WEEK_DAYS.index(S))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

D_dict = {}
D_dict['SUN'] = 7
D_dict['MON'] = 6
D_dict['TUE'] = 5
D_dict['WED'] = 4
D_dict['THU'] = 3
D_dict['FRI'] = 2
D_dict['SAT'] = 1

print(D_dict[S])

Submission status: Accepted

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

a = w.index(S)

print(7 - a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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)

Submission status: Accepted

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

if 6-now == 0:
  print(7)
else:
  print(6-now)

Submission status: Accepted

Solution code:
S = input()

week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
ans = 7 - week.index(S)

print(ans)

Submission status: Accepted

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

S = input()

for j in range(7):
    if W[j] == S:
        print(7-j)

Submission status: Accepted

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

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

# process
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
windex = week.index(s)
ans = 7 if windex == 0 else 7-windex

# output
print(ans)

Submission status: Accepted

Solution code:
day = input()
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
ans = 7;

for i in range(len(week)):
    if day != week[i]:
        ans -= 1
    else:
        break
print(ans)

Submission status: Accepted

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

str = input()
num = week.index(str)
if num == 0:
    print("7")
else:
    print(7-num)

Submission status: Accepted

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

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

Submission status: Accepted

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

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