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

Submission status: Accepted

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


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

judge =0

for i in range(len(list_aaa)):
    if list_aaa[i] ==S:
        judge=(7-i)

print(judge)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
S = input()
a = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
a.reverse()
ans = a.index(S) + 1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
printn = lambda x: sys.stdout.write(x)
inn = lambda : int(input())
inl   = lambda: list(map(int, input().split()))
inm   = lambda:      map(int, input().split())
DBG = True # and False

def ddprint(x):
  if DBG:
    print(x)

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

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

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

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

print(7-days.index(S))

Submission status: Accepted

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

print(a[d])

Submission status: Accepted

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

s = input()

print(next_sun[s])

Submission status: Accepted

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

a = input()

print(7-s.index(a))

Submission status: Accepted

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

print(7-T.index(S))

Submission status: Accepted

Solution code:
# coding: utf-8

week = {"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
print(week[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:
a = input()
d = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
print(d[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:
print((sum(map(ord,input()))+9)**49%9133%8)

Submission status: Accepted

Solution code:
s = input()

dayweek = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(len(dayweek) - dayweek.index(s))

Submission status: Accepted

Solution code:
print(sum(map(ord,input()+'\n'))**698%6329%8)

Submission status: Accepted

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

for i in week:
  if i == S:
    print(7 - counter)
    break
  counter+=1

Submission status: Accepted

Solution code:
S = input()

week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
count = 0

for i in week:
    if i == S:
        print(7-count)
        exit()
    count+=1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

S = raw_input()

print Day[S]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
today = input()

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

Submission status: Accepted

Solution code:
d = {"SU":7, "MO":6, "TU":5, "WE":4, "TH":3, "FR":2, "SA":1}
print(d[input()[:2]])

Submission status: Accepted

Solution code:
# coding: utf-8

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

str = input()

print(week[str])

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

Submission status: Accepted

Solution code:
# coding:utf-8

S = input()
DAY_OF_WEEK = ('SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT')

for i, day_of_week in enumerate(DAY_OF_WEEK):
	if(day_of_week == S):
		print(7-i)
		break

Submission status: Accepted

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

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

    print(W.index(S)+1)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

print(7 - dic[S])

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()

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

print(holiday_d[s])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(7 - li_w.index(s))

Submission status: Accepted

Solution code:
r=['SUN','SAT','FRI','THU','WED','TUE','MON']
s=raw_input()
x=r.index(s)
if x==0:
    print 7
else:
    print x

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

Submission status: Accepted

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

Submission status: Accepted

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

S = input()

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

Submission status: Accepted

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

print(a[input()])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

if s == "SAT":
    print(1)
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== "SUN":
    print(7)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if s[0] == "M":
  print(6)
elif s[:2] == "TU":
  print(5)
elif s[0] == "W":
  print(4)
elif s[0] == "T":
  print(3)
elif s[0] == "F":
  print(2)
elif s[:2] == "SA":
  print(1)
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:
d = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
s = input()
print(7 - d.index(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

if i == 'SUN':
    print(7)
else:
    print(len(day) - day.index(i) - 1)

Submission status: Accepted

Solution code:
print({'SA':1,'FR':2,'TH':3,'WE':4,'TU':5,'MO':6,'SU':7}[input()[:2]])

Submission status: Accepted

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

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

i = l.index(S)
print(7-i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for cnt,_ in enumerate(reversed(S),1):
    if _ == s:
        print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

ans = (7 - week_list.index(S))

print(ans)

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc146/tasks/abc146_a

import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop

def main():
    s = input()
    ans = 0
    if s == 'SUN':
        ans = 7
    if s == 'MON':
        ans = 6
    if s == 'TUE':
        ans = 5
    if s == 'WED':
        ans = 4
    if s == 'THU':
        ans = 3
    if s == 'FRI':
        ans = 2
    if s == 'SAT':
        ans = 1
    print(ans)
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
stdin = input()

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

num_of_today = days[stdin]
days_until_next_sun = 7 - num_of_today

print(str(days_until_next_sun))

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

for ind, day in enumerate(week):
  if day == S:
    print(7 - ind)
    break;

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

print(int(l.index(day)) + 1)

Submission status: Accepted

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
mod2 = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
s = input()
slist = np.array(['SUN','MON','TUE','WED','THU','FRI','SAT'])
i = np.where(slist==s)[0][0]

print(7-i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
dic = {}
for i, d in enumerate(days):
  dic[d] = i
  
S = input()

if dic[S] == 6:
  print(1)
else:
  print(7-dic[S])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
d = input()

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

print(li.index(d) + 1)

Submission status: Accepted

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

print(wday[input()])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=['SUN','MON','TUE','WED','THU','FRI','SAT']
d={s:7-i for i,s in enumerate(a)}
print(d[input()])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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=str(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 = list(input())
ans =0
if(S[0]=='S' and S[1] == 'U'):
    ans = 7
elif(S[0]== 'M'):
    ans =6
elif(S[0]== 'T' and S[1] == 'U'):
    ans =5
elif(S[0] == 'W'):
    ans =4
elif(S[0] == 'T' and S[1] == 'H'):
    ans =3
elif(S[0] == 'F'):
    ans =2
else:
    ans =1
print(ans)

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

s = input().strip()

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

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:
#abc146a
r=['SUN','SAT','FRI','THU','WED','TUE','MON']
s=raw_input()
x=r.index(s)
if x==0:
 print 7
else:
 print x

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

s = input()

if s=="SUN":
    print(7)
else:
    print(7-l.index(s))

Submission status: Accepted

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

num = 6 - day_list.index(s)
if num == 0:
    print(7)
else:
    print(num)

Submission status: Accepted

Solution code:
S = input()
date =  ['MON','TUE','WED','THU','FRI','SAT','SUN']
dic = {d:i for i,d in enumerate(date)}

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

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

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

Submission status: Accepted

Solution code:
X = ["SUN","MON","TUE","WED","THU","FRI","SAT","xx"]
X.reverse()

S = input()
print(X.index(S))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("_ SA FR TH WE TU MO SU".split().index(input()[:2]))

Submission status: Accepted

Solution code:
#input
S = str(input())

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

A()

Submission status: Accepted

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

s = input()
print(solve(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Date = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', '']
S = input()
for i, d in enumerate(Date[-1::-1]):
    if S == d:
        print(i)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print('{}'.format(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
  s = input().strip()
  ind_day = {"SUN": 7, "MON": 1, "TUE": 2, "WED": 3, "THU": 4, "FRI": 5, "SAT": 6}
  key = ind_day[s]
  if key < 7:
    print(7 - key)
  else:
    print(key)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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