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', 'SUN']
print(7 - a.index(s))

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

print(7-memo.index(a))

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

day_set = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
print(day_set.index(s)+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

ans = 7 - days.index(S)
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:
# coding: utf-8
# Your code here!

if __name__ == '__main__':
    today=input()
    week=["SUN","MON","TUE","WED","THU","FRI","SAT"]
    week=week[::-1]
    print(week.index(today)+1)

Submission status: Accepted

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

Submission status: Accepted

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

print(d[s])

Submission status: Accepted

Solution code:
s=input()
A=["","SAT","FRI","THU","WED","TUE","MON","SUN"]
print(A.index(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:
import sys
# input = sys.stdin.buffer.readline
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getlist():
    return list(map(int, input().split()))
import math
import heapq
from collections import defaultdict, Counter, deque
MOD = 10**9 + 7
INF = 10**15


def main():
    date = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
    print(7 - date.index(input().strip()))


if __name__ == '__main__':
    main()

"""
9999
3

2916
"""

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

res = -1
if s == "SUN":
    res = 7
if s == "MON":
    res = 6
if s == "TUE":
    res = 5
if s == "WED":
    res = 4
if s == "THU":
    res = 3
if s == "FRI":
    res = 2
if s == "SAT":
    res = 1

print(res)

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':
    n = 7
elif s == 'MON':
    n = 6
elif s == 'TUE':
    n = 5
elif s == 'WED':
    n = 4
elif s == 'THU':
    n = 3
elif s == 'FRI':
    n = 2
elif s == 'SAT':
    n = 1

print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
w = 'SUNMONTUEWEDTHUFRISAT'
ans = (w.index('SAT')- w.index(s))/3
print(int(ans+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:
today = input()
days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
print(7-days.index(today))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

i = day.index(S)

print(7 - i)

Submission status: Accepted

Solution code:
s = input()

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

print(7 - c.index(s))

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

Submission status: Accepted

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

S=input()

print(yobi[S])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

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

for i in range(1,8):
    if s == l[i-1]:
        print(8-i)

Submission status: Accepted

Solution code:
l=[['SUN',7],['MON',6],['TUE',5],['WED',4],['THU',3],['FRI',2],['SAT',1]]
s=str(input())
for i in range(7):
  if s==l[i][0]:
    print(l[i][1])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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()
WEEK = ('MON','TUE','WED','THU','FRI','SAT','SUN')
i = WEEK.index(S)
answer = 6-i if i!=6 else 7
print(answer)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

for i in range(len(Y_list)):
    if Y_list[i] == S:
        print(7-i)

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:
#!/usr/bin/env python3
# https://atcoder.jp/contests/abc146/tasks/abc146_a

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

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

Submission status: Accepted

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

for i in range(len(dict)):
    if dict[i]==S:
        ans=6-i
        if ans==0:
            print(7)
        else:
            print(ans)
        break

Submission status: Accepted

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

S = input() 

print( 7 - int(a.index(S)))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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:
print(['SAT','FRI','THU','WED','TUE','MON','SUN'].index(input())+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

l = 0
x= {"SUN":0,"MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6}
for k,v in x.items():
    if k == s:
       l = 7 - v
    else:
        pass
print(l)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

ans = 0

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

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

s = input()
print(lis.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)
elif s == "SAT":
    print(1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
s = input()
day = ['SUN','MON','TUE','WED','THU','FRI','SAT']

num = day[::-1].index(s)
print(num + 1)

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

s=input()

print(mon.index(s))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if __name__=='__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

for i, day in enumerate(week):
    if day == S:
        day_num = i
        break

print(7-i)

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

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

print(7 - week.index(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(7-weekdays.index(S))

Submission status: Accepted

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


def main():
    S = input()
    W = {'SUN': 7,
         'MON': 6,
         'TUE': 5,
         'WED': 4,
         'THU': 3,
         'FRI': 2,
         'SAT': 1}

    print(W[S])


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

today = input()

for day in week_list:
    if day == today:
        
        print(week_list.index(day))

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

S = input()

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

print(7 - day.get(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:
daz = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s = input()
i = 0
for ind in range(7):
  if daz[ind] == s: i = ind
print(7-i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

def main():
	d = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
	S = sys.stdin.readline()
	print(d[S[:-1]])


main()

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

list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
weeknum = list.index(S)

dayafter = 7-int(weeknum)
print(dayafter)

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

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

for i in range(len(dow)):
  if day == dow[i]:
    a = 7 - i
    print(a)
    break

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(A[input()])

Submission status: Accepted

Solution code:
S=input()

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

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

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

s =  input()

if s == "SUN":
    print(7)
else:
    print(6 - w.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)
else : print(1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num_dic = {}
word_list = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
for n, word in enumerate(word_list):
    num_dic[word] = 7 - n

s = input()
print(num_dic[s])

Submission status: Accepted

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

def main():
    a = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
    s = input().strip()
    for i, t in enumerate(a):
        if s == t:
            print(7-i)
            return

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

a = List.index(S)

if a == 0:
    a = 7

print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:


def main():
    week = "MON TUE WED THU FRI SAT SUN".split()
    d = week.index(input())
    print(6 - d if d < 6 else 7)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

print(7 - S.index(Sin))

Submission status: Accepted

Solution code:
def search(s):
    week_day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
    for i in range(len(week_day)):
        if s == week_day[i]:
            return len(week_day) - i

if __name__ == "__main__":
    s = input()
    print(search(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(l[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")
else:
  pass

Submission status: Accepted

Solution code:
import sys
row = sys.stdin.readline
def read_string(row):
    return row().rstrip()

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

Submission status: Accepted

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

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

S=input()
print(7-cal[S])

Submission status: Accepted

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

MOD = 10 ** 9 + 7

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

Submission status: Accepted

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

s=input()

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

Submission status: Accepted

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

if a == "SUN":
    print(7)
else:
    print(7-dic[a])

Submission status: Accepted

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

Submission status: Accepted

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