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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
input_data = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

S = input()

# S = 'SAT'

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)

Submission status: Accepted

Solution code:
S = input()
l = ['MON','TUE','WED','THU','FRI','SAT','SUN']
i = l.index(S) + 1
a = 7-i
if a == 0:
    a = 7
print(a)

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:
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac
import fractions
from functools import reduce
from operator import mul
import bisect
import sys
import logging
import heapq
import itertools

logging.basicConfig(level=logging.ERROR)

input = sys.stdin.readline

setrecursionlimit(1000000)


def main():
	l =  list(reversed(['SUN','MON','TUE','WED','THU','FRI','SAT','UNTI']))
	print(l.index(input()[:-1]))

def factorization(n):
	if n<2:
		return []

	arr = []
	temp = n
	for i in range(2, int(-(-n**0.5//1))+1):
		if temp%i==0:
			cnt=0
			while temp%i==0:
				cnt+=1
				temp //= i
			arr.append([i, cnt])

	if temp!=1:
		arr.append([temp, 1])

	if arr==[]:
		arr.append([n, 1])

	return arr

def cmb(n,r):
    r = min(n-r,r)
    if r == 0: return 1
    over = reduce(mul, range(n, n - r, -1))
    under = reduce(mul, range(1,r + 1))
    return over // under

def zip(a):
	mae = a[0]
	ziparray = [mae]
	for i in range(1,len(a)):
		if(mae != a[i]):
			ziparray.append(a[i])
			mae = a[i]
	return ziparray

def is_prime(n):
	if n < 2: return False

	for k in range(2, int(math.sqrt(n)) + 1):
		if n % k == 0:
			return False

	return True

def list_replace(n,f,t):
	return [t if i==f else i for i in n]

def base_10_to_n(X, n):
	X_dumy = X
	out = ''
	while X_dumy>0:
		out = str(X_dumy%n)+out
		X_dumy = int(X_dumy/n)
	if(out == ''): return '0'
	return out

def gcd(numbers):
	return reduce(fractions.gcd, numbers)

def lcm(numbers):
    return reduce(lcm_base, numbers, 1)

def lcm_base(x, y):
    return (x * y) // fractions.gcd(x, y)

class Queue():
	def __init__(self):
		self.q = deque([])
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.popleft()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class Stack():
	def __init__(self):
		self.q = []
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.pop()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class graph():
	def __init__(self):
		self.graph = defaultdict(list)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
		self.graph[t].append(f)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
		self.graph[t].remove(f)
	def linked(self,f):
		return self.graph[f]

class dgraph():
	def __init__(self):
		self.graph = defaultdict(set)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
	def linked(self,f):
		return self.graph[f]

class PriorityQueue():
	def __init__(self):
		self.queue = []
	def push(self,i):
		heapq.heappush(self.queue,-i)
	def pop(self):
		return -1 * heapq.heappop(self.queue)
	def sum(self):
		return -sum(self.queue)

main()

Submission status: Accepted

Solution code:
import sys
S = input()
day = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in range(7):
    if S==day[i]:
        print(i+1)
        sys.exit()

Submission status: Accepted

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

Submission status: Accepted

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

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

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


if S in W:
  wn = W[S]
  print(7-wn)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if s == l[0]:
    print('7')
elif s == l[1]:
    print('6')
elif s == l[2]:
    print('5')
elif s == l[3]:
    print('4')
elif s == l[4]:
    print('3')
elif s == l[5]:
    print('2')
else:
    print('1')

Submission status: Accepted

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

a = 6 - int(week.index(day))
if a != 0:
    print(a)
else: print("7")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_day = input()

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

print(weeks[input_day])

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

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

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

Submission status: Accepted

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

str = input()
n = days.index(str)
print(7-n)

Submission status: Accepted

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

Submission status: Accepted

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=="THU":
  print(3)
else:
  print(2)

Submission status: Accepted

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

Submission status: Accepted

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

for i, x in enumerate(week):
    if x == s:
        print(7 - i)

Submission status: Accepted

Solution code:
S = input()

a = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
#7,6,5,4,3,2,

for k in range(7):
  if a[k] == S:
    print(7 - k)

Submission status: Accepted

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

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

Submission status: Accepted

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

print(7-W.index(s))

Submission status: Accepted

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


print(7 - s.index(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
W = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
i = W.index(S) + 1
ans = 1
while W[i % len(W)] != 'SUN':
    i += 1
    ans+=1
print(ans)

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = input()
b = a.split()

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

cnt = 0
for i in days:
    if a == i:
        print(7-cnt)

    cnt += 1

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

Solution code:
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 "FRI":
    print(2)

Submission status: Accepted

Solution code:

# -*- coding: utf-8 -*-
 
# 整数の入力
s = str(input())
day = ['SUN','MON','TUE','WED','THU','FRI','SAT']
diff = [7,6,5,4,3,2,1]

print(diff[day.index(s)])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
s = input()
sl = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(len(sl)):
    if s == sl[i]:
        print(len(sl) - i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
day = input()

list=["SUN","MON","TUE","WED","THU","FRI","SAT"]
answer = 7 - int(list.index(day))

print(answer)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

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

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

Submission status: Accepted

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

print(7 if days == 0 else days)

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

Submission status: Accepted

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


def solve(*args: str) -> str:
    day = {'SUN': 0, 'MON': 1, 'TUE': 2,
           'WED': 3, 'THU': 4, 'FRI': 5, 'SAT': 6}
    return str(7-day[args[0]])


if __name__ == "__main__":
    print(solve(*(open(0).read().splitlines())))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict, deque
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations
from operator import add, mul, sub

sys.setrecursionlimit(100000)
input = sys.stdin.readline
INF = 2**62-1

def read_int():
    return int(input())


def read_int_n():
    return list(map(int, input().split()))


def read_float():
    return float(input())


def read_float_n():
    return list(map(float, input().split()))


def read_str():
    return input().strip()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(S):
    ans = 0
    D = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI','SAT']
    
    return 7 - D.index(S)


def main():
    S = read_str()
    print(slv(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:
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:
s=input()
youbi=["SUN","MON","TUE","WED","THU","FRI","SAT" ]

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

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

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

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

print(daylist[N])

Submission status: Accepted

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

for i in range(len(L)):
    if(L[i]==S):
        print(i+1)

Submission status: Accepted

Solution code:
S = input()

a = ('SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT')

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

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

Submission status: Accepted

Solution code:
W = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#import math.sqrt as sqrt
#data = list(map(input().split()))

data = input()

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

Submission status: Accepted

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

day = input()
for i in range(len(days)):
    if day == days[i]:
        print(7-i)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=str(input())
ans=int(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:
list = input()
l = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in range(0,7):
  if l[i] == list:
    print(i+1)

Submission status: Accepted

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

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:


def solve():
    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)


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
S = input()

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

print(WEEK['SUN'] - WEEK[S] + 7)

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

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

S = input()

mode = 0
for i, day in enumerate(days * 2):
    if mode == 0:
        mode = 1 if S == day else 0
        i_today = i
    else:
        if day == 'SUN': break

if S == 'SUN':
    print(7)
else:
    print(i - i_today)

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()
for i in range(len(l)):
    if s == l[i]:
        print(7-i)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

Solution code:
S=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:
# -*- coding: utf-8 -*-
S = str(input())
week_list = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
week_dir = {}

for idx, wday in enumerate(reversed(week_list)):
    week_dir[wday] = idx + 1

print(week_dir[S])

Submission status: Accepted

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

for i in range(7):
    if S==WEEK[i]:
        ans=i+1

print(ans)

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

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

Submission status: Accepted

Solution code:
s = input() 

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = input()

if data == 'SUN':
    print(7)
elif data == 'MON':
    print(6)
elif data == 'TUE':
    print(5)
elif data == 'WED':
    print(4)
elif data == 'THU':
    print(3)
elif data == 'FRI':
    print(2)
elif data == '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:
def main():
    weekday_name = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    s = input()
    for i in range(7):
        if weekday_name[i] == s:
            print(7 - i)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
d = 0

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

print(d)

Submission status: Accepted

Solution code:
s = input()
k = s[0]+s[1]
if (k == "SU"):
    print(7)
elif (k == "MO"):
    print(6)
elif (k == "TU"):
    print(5)
elif (k == "WE"):
    print(4)
elif (k == "TH"):
    print(3)
elif (k == "FR"):
    print(2)
else:
    print(1)

Submission status: Accepted

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


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


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    S = str(input())
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = str(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:
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()
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)
else:
    print(1)

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:
from collections import defaultdict, deque, Counter
import sys
import bisect
import heapq
import math

# input = sys.stdin.readline

sys.setrecursionlimit(1000000000)

MIN = -10 ** 9
MOD = 10 ** 9 + 7

ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"


def main():
    # N = int(input())
    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)

    # A, B = [int(a) for a in input().split()]


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

Submission status: Accepted

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

Submission status: Accepted

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

S = input()
for i, w in enumerate(week):
    if S == w:
        print(i+1)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

def main():
    S_list = ['SUN','MON','TUE','WED','THU','FRI','SAT','']
    S_list.reverse()
    S = input().rstrip()

    print(S_list.index(S))




if __name__ == '__main__':
    main()

Submission status: Accepted

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

ans = 7 - WS.index(S)
print(ans)