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: Wrong Answer

Solution code:
S = input()

if S == "SUN":
    print("7")

elif S == "MON":
    print("6")

elif S == "TUS":
    print("5")

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

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
day=input()
if (day=="SUN"):
  print(0)
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: Wrong Answer

Solution code:
S = str(input())

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

Submission status: Wrong Answer

Solution code:
# coding:utf-8
daydic = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 3, 'SAT': 1}
S = input()
print(daydic[S])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i,t in enumerate(arr):
  if s == t:
    print(arr[i+1])
    break

Submission status: Wrong Answer

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 == 'FRY':
    print(2)
elif a == 'SAT':
    print(1)
else:
    pass

Submission status: Wrong Answer

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("5")
elif S == "FRI":
  print("2")
else:
  print("1")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
r = str(input())

wkdy = ["-1" , "SAT", "FRI", "THU", "WED", "TUE", "MAN", "SUN"]

for i in range(len(wkdy)):
    if wkdy[i] == r:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
day = input()
  
if(day=="SUN"):
  print(0)
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: Wrong Answer

Solution code:
#     Hariom_Pandey
#      24.11.2019

import math as mt
import sys as sy
import numpy as np
import operator as op
import time as tt
import functools
from collections import Counter, deque, defaultdict
t=sy.stdin.readline()
if(t=='SUN'):
    print(7)
elif(t=='MON'):
    print(7-1)
elif(t=='TUE'):
    print(7-2)
elif(t=='TUE'):
    print(7-2)
elif(t=='WED'):
    print(7-3)
elif(t=='THU'):
    print(7-4)
elif(t=='FRI'):
    print(7-5)
elif(t=='SAT'):
    print(7-6)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
s = input()

if s=="SUN":
  print("7")
  sys.exit()

if s=="MON":
  print("6")
  sys.exit()

if s=="TUE":
  print("5")
  sys.exit()

if s=="WED":
  print("4")
  sys.exit()
  
if s=="THU":
  print("3")
  sys.exit()

if s=="SAT":
  print("1")
  sys.exit()

Submission status: Wrong Answer

Solution code:
import sys
s = input()
ls = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
ls_in = ls.index(s)
if s == "SUN":
    print(7)
    sys.exit()
print(ls_in)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

n = input()

for i in range(len(list)):
    if n == list[i] and n == 'SAT':
        print(list[0])
    elif n == list[i]:
        print(list[i+1])

Submission status: Wrong Answer

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

s = input()
n = weeks.index(s)
print(min(n, 7 - n))

Submission status: Wrong Answer

Solution code:
a=input()

if a in "SAT":
    print(1)
if a in "SUN":
    print(7)
    
if a in "MON":
    print(6)
if a in "TUE":
    print(5)
    
if a in "WED":
    print(4)
if a in "THU":
    print(3)
if a in "SAT":
    print(2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import os
import numpy as np

class getStdin(object):
    @classmethod
    def get_str(cls):
        return str(input())


if __name__ == '__main__':
    n = getStdin.get_str()
    a = ['', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
    print(a.index(n))

    os.sys.exit(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
S = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
s_list = ['SUN','MON','TUE','WED','THU','FRI','SAT']
if s == s_list[0]:
  print(s_list[1])
elif s == s_list[1]:
  print(s_list[2])
elif s == s_list[2]:
  print(s_list[3])
elif s == s_list[3]:
  print(s_list[4])
elif s == s_list[4]:
  print(s_list[5])
elif s == s_list[5]:
  print(s_list[6])
else:
  print(s_list[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = input()

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

Submission status: Wrong Answer

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 == "TFU":
    print(3)
elif day == "FRI":
    print(2)
else:
    print(1)

Submission status: Wrong Answer

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

print((7-L.index(S))%7)

Submission status: Wrong Answer

Solution code:
import sys
S=str(input())
list=['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(len(list)):
  if list[i]==S:
    if list[i]=='SAT':
      print('SUN')
      sys.exit()
    else:
      print(list[i+1])

Submission status: Wrong Answer

Solution code:
a=input()

if a in "SAT":
    print(1)
if a in "SUN":
    print(7)
    
if a in "MAN":
    print(6)
if a in "TUE":
    print(5)
    
if a in "WED":
    print(4)
if a in "THU":
    print(3)
if a in "SAT":
    print(2)

Submission status: Wrong Answer

Solution code:
s = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
n = [1, 2, 3, 4, 5, 6, 7]
S = input()
i = s.index(S)
print(n[i])

Submission status: Wrong Answer

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=="TUE":
  print(3)
elif S=="FRI":
  print(2)
elif S=="SAT":
  print(1)

Submission status: Wrong Answer

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

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: Wrong Answer

Solution code:
y=input()
# s=[[0 for i in range(m)] for j in range(n)]
# for i in range(n):
# 	s[i]=list(input())
 # SUN,MON,TUE,WED,THU,FRI,SAT
if y=='SUN':
	print(7)
elif y=='MON':
	print(6)
elif y=='MON':
	print(5)
elif y=='MON':
	print(4)
elif y=='MON':
	print(3)
elif y=='MON':
	print(2)
elif y=='MON':
	print(1)

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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=='THR'):
    print(3)
elif(S=='Fri'):
    print(2)
elif(S=='SAT'):
  print(1)
else:
    print('ERR')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
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: Wrong Answer

Solution code:
S = input()

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

if S != 'SUN':
  print(7-youbi.index(S))
else:
  print(0)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
from collections import defaultdict
from copy import deepcopy
input = sys.stdin.readline

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: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
AtCoder A
"""

import sys, math, random
import numpy as np

# N = int(input())
# A = list(map(int,input().split())) # N row 1 column
# A = [int(input()) for _ in range(N)] # 1 row N column
# S = str(input()) # str(input()) == input() -> 'abc'
# S = list(input()) # abc -> ['a','b','c']
# S.replace('ABC','X') # "testABCABC" -> "testXX"
# S=numpp.assaray(S)=="#"
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LLS(): return [list(sys.stdin.readline().rstrip()) for _ in sys.stdin.readlines()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()



def main():
    A=S()
    if A=="SUN":
        print(7)
    elif A=="MON":
        print(6)
    elif A=="TUE":
        print(5)
    elif A=="MWED":
        print(4)
    elif A=="THU":
        print(3)
    elif A=="FRI":
        print(2)
    elif A=="SAT":
        print(1)




if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = input()

print(x.index('SUN') - x.index(s))

Submission status: Wrong Answer

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

Submission status: Time Limit Exceeded

Solution code:
import sys
import os
import time

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    S = iss()
    key = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    time.sleep(1.99)
    print(7 - key.index(S))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
if 'SU' in s:
  print('7')
if 'MO' in s:
  print('6')
if 'TU' in s:
  print('5')
if 'WE' in s:
  print('4')
if 'TH' in s:
  print('3')
if 'FR' in s:
  print('2')
if 'SA' in s:
  print('1')

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

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

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()
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:
#!/usr/bin/env python3
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


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


def main():
    solve()


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

Submission status: Accepted

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

wd = "SUN MON TUE WED THU FRI SAT".split()
wd = list(reversed(wd))

def solve(S: str):
    idx = wd.index(S)
    return idx+1


def main():
    S = input().strip()
    answer = solve(S)
    print(answer)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

n = input()

if n == 'SUN':
    print(7)
else:
    print(6 - li.index(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)

Submission status: Accepted

Solution code:
s = input()

week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
n = week.index(s)

print(7-n)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

idx = week.index(s)
print(7-idx)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

s = input()

i = list.index(s)
answer = 7 - i

print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

# 辞書型を使うとスッキリ書ける！
dic = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
print(dic[S])

Submission status: Accepted

Solution code:
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:
# coding: utf-8
# Your code here!
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()
L=['SUN','MON','TUE','WED','THU','FRI','SAT']

print(7-L.index(s))

Submission status: Accepted

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

S = input()

print(7 - yobi.index(S))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

S = input()

print(7-days.index(S))

Submission status: Accepted

Solution code:
S=str(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

current_day = input()

i = 0

while True:
    if days[i] == current_day:
        break
    i += 1

print(7 - i)

Submission status: Accepted

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

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:
# 問題：https://atcoder.jp/contests/abc146/tasks/abc146_a

week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
for i, day in enumerate(week):
    if day == s:
        res = 7 - i
        break
res = 7 - i
print(res)

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

print(W.index(S))

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

Submission status: Accepted

Solution code:
s=input()
s=s.lower()
week=['sun','mon','tue','wed','thu','fri','sat']
ans=week.index(s)
print(7-int(ans))

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

S = input()

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

answer = 7 - a

print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(7):
  if S == week[i]:
    print(i+1)

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = input()
    p = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

    print(7 - p.index(S))


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")
elif S == "SAT":
	print("1")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
S = input()
print(len(W) - W.index(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
# S は SUN,MON,TUE,WED,THU,FRI,SAT のいずれか
# 次の日曜日（明日以降）が何日後か

S = input()

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

Submission status: Accepted

Solution code:
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']
for i in range(len(W)):
  if S==W[i]:
    print(7-i)

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys

INF = float('inf')


def solve(S: str):
    return 7 - ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'].index(S)


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    print(f'{solve(S)}')


if __name__ == '__main__':
    main()

Submission status: Accepted

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