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が与えられます。

# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれかであり、
# それぞれ日曜日、月曜日、火曜日、水曜日、木曜日、金曜日、土曜日を表します。

# 次の日曜日 (あす以降) が何日後か求めてください。

# 制約
# Sは SUN,MON,TUE,WED,THU,FRI,SAT のいずれか

# 入力
# 入力は以下の形式で標準入力から与えられる。
# S

# 出力
# 次の日曜日が何日後か出力せよ。

l  = ['SUN','MON','TUE','WED','THU','FRI','SAT']
ll = [ 7,    6,    5,    4,    3,    2,    1   ]

S = input()

print(ll[l.index(S)])

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:
N=input()
A = ["SUN","MON","TUE","WED","THU",'FRI',"SAT"]
print(abs(A.index(N)-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:
import sys
from collections import defaultdict
from collections import deque
import numpy as np
import heapq
from heapq import heappush, heappop
import itertools


#read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

S = input()

a = 0
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

print(7-a)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input()

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

print(7 - x.index(s))

Submission status: Accepted

Solution code:
z=['SAT','SUN','MON','TUE','WED','THU','FRI']
x=['Saturday','Sunday','Monday','Tuesday','Wednesday','Thursday','Friday']
b=['tomorrow','two','three','four','five','six','seven']
c=input()
v=z.index('SUN')-z.index(c)
if v <0:
    v=7+v
elif v==0:
     v=7 
print(v)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# SUN MON TUE WED THU FRI SAT

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

Submission status: Accepted

Solution code:
day = str(input())
day = day.upper()

if (day == 'SAT'):
    print('1\n')
    #print('It is Saturday today, and tomorrow will be Sunday.')
elif(day =='SUN'):
    print('7\n')
    #print('It is Sunday today, and seven days later, it will be Sunday again.')
elif(day=='MON'):
    print('6\n')
    #print('It is Monday today,and sex day later, it will be Sunday again.')
elif(day=='TUE'):
    print('5\n')
    #print('It is Tuesday today, and five days later, it will be Sunday again.')    
elif(day=='WED'):
    print('4\n')
    #print('It is Wednesday today, and four days later, it will be Sunday again.')    
elif(day=='THU'):
    print('3\n')
    #print('It is thursday today, and three days later, it will be Sunday again.')    
elif(day=='FRI'):
    print('2\n')
    #print('It is Friday today, and five days later, it will be Sunday again.')

Submission status: Accepted

Solution code:
s = ['SUN','MON','TUE','WED','THU','FRI','SAT']
day = input()
start = s.index(day)
if day == 'SUN':
    print(7)
else:
    count = 0
    for x in range(7):
        if start == 7:
            start = 0
        if s[start] == 'SUN':
            print(count)
            break
        else:
            start += 1
        count += 1

Submission status: Accepted

Solution code:
S = input()
if S[0]=='M':
  print(6)
elif S[2]=='E':
  print(5)
elif S[0] == 'W':
  print(4)
elif S[1] == 'H':
  print(3)
elif S[0] == 'F':
  print(2)
elif S[1] == 'A':
  print(1)
else:
  print(7)

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:
# ABC 146 A

S = input()
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

print(7 - days.index(S))

Submission status: Accepted

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

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:
def convert_to_int(day):
    day_int_conversion = {"SUN": 0, "MON": 1, "TUE": 2, "WED": 3, "THU": 4, "FRI": 5, "SAT": 6}
    today = day_int_conversion[day]
    # mon->6, sun->7, sat->1
    return 7-today


if __name__ == "__main__":
    test1 = "SAT"
    test2 = "SUN"
    testcustom3 = "TUE"
    print(convert_to_int(input()))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
day=input()
days=["SUN","MON","TUE","WED","THU","FRI","SAT"]
count=7
for i in days:
  if day==i:
    print(count)
    break
  else:
    count-=1

Submission status: Accepted

Solution code:
A = ['SUN','MON','TUE','WED','THU','FRI','SAT']
B = A[::-1]
s = input()

for i in range(7):
    if B[i] == s:
        break
print(i+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dic = {}

dic["SUN"] = 7
dic["MON"] = 6
dic["TUE"] = 5
dic["WED"] = 4
dic["THU"] = 3
dic["FRI"] = 2
dic["SAT"] = 1

S = str(input())

print(dic[S])

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

if S == "SUN":
    print(7)
elif S == "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'] 
i = str(input())
count = 7
for day in days:
  if i == day:
    print(count)
    break
  else:
    count-=1

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
index = days.index(S) + 1
count = 0
while index != 0:
    if index == 7:
        index = 0
    else:
        index += 1
    count += 1
print(count)

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:
print("SATFRITHUWEDTUEMONSUN".index(input())//3+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = input()


print(7-l.index(s))

Submission status: Accepted

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

print(7 - l.index(s))

Submission status: Accepted

Solution code:
S = input()
if 'M' in S:
    print(6)
elif 'N' in S:
    print(7) 
elif 'H' in S:
    print(3)
elif 'U' in S:
    print(5)
elif 'W' in S:
    print(4)
elif 'F' in S:
    print(2)
elif 'A' in S:
    print(1)

Submission status: Accepted

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

print(d[input()])

Submission status: Accepted

Solution code:
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 = 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:
import math
import calendar
import fractions
import itertools

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
 
def main():
    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')
 
    sys.exit()
 
main()

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

print(len(w) - w.index(S))

Submission status: Accepted

Solution code:
from sys import stdin
input = stdin.readline().rstrip()
week_list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

print(7 - week_list.index(input))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

    print(slist.index(S)+1)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
def solve(s):
    weekday = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']

    ans = len(weekday) - (weekday.index(s) + 1)
    return ans if ans != 0 else 7


S = input()

print(solve(S))

Submission status: Accepted

Solution code:
arr = ['SUN','MON','TUE','WED','THU','FRI','SAT']
arr.reverse()
s = str(input())

for i in range(len(arr)):
    if arr[i] == s:
        print(i+1)

Submission status: Accepted

Solution code:
# coding: UTF-8
import sys
#sys.setrecursionlimit(n)
import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

readl= lambda: list(map(int, sys.stdin.readline().split()))
readt= lambda: tuple(map(int, sys.stdin.readline().split()))
read = lambda: sys.stdin.readline().rstrip()
readi = lambda: int(read())
readmi = lambda: map(int, sys.stdin.readline().split())
readms = lambda: map(str, sys.stdin.readline().split())

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

Submission status: Accepted

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

print(days.index(S) + 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:
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()
if s == "SUN":
    x = 7
if s == "MON":
    x = 6
if s == "TUE":
    x = 5
if s == "WED":
    x = 4
if s == "THU":
    x = 3
if s == "FRI":
    x = 2
if s == "SAT":
    x = 1
print(x)

Submission status: Accepted

Solution code:
'''input
2
1 5
'''
# A coding delight https://ideone.com/m98Hht
from sys import stdin
input = stdin.readline


# main starts
s = input().strip()
if s == 'SUN':
	print(7)
elif s == 'MON':
	print(6)
elif s == 'TUE':
	print(5)
elif s == 'WED':
	print(4)
elif s == 'THU':
	print(3)
elif s == 'FRI':
	print(2)
else:
	print(1)

Submission status: Accepted

Solution code:
S=input()

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

print(A.index(S)+1)

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

a=input()
n=S.index(a)

if a=="SUN":
    print(7)
else:
    print(6-n)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(7-date.index(S))

Submission status: Accepted

Solution code:
print(7 - {w:i for w, i in zip(('SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'), range(7))}[input()])

Submission status: Accepted

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

Submission status: Accepted

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

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_list = list("MON,TUE,WED,THU,FRI,SAT,SUN".split(","))
s = input()
print(s_list.index("SUN") - s_list.index(s) if s != "SUN" else 7)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


print(days[input()])

Submission status: Accepted

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

import sys
sys.setrecursionlimit(300000)


def solve(S: str):
    d = ['SUN','MON','TUE','WED','THU','FRI','SAT']
    for i, v in enumerate(d):
        if S == v:
            ret = 7 - i
            break
    print(ret)
    return

def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(int(dDic[s]))

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 8, Jan, 2020
"""

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
date = readline().decode('utf8').rstrip()

print(len(week)-week.index(date))

Submission status: Accepted

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

if s == "SUM":
	print(7)
else:
	print((l.index(s)+1))

Submission status: Accepted

Solution code:
day = input()

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

print(7 - days[day])

Submission status: Accepted

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

input_day = input()

for day in day_of_week:
  if day == input_day:
    print(day_of_week[input_day])

Submission status: Accepted

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

for i in (range(length)):
    if S == List[i]:
        print(i+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:
D = ["SUN","MON","TUE","WED","THU","FRI","SAT" ]
S = input()
print(len(D)-D.index(S))

Submission status: Accepted

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

n = w.index(dw)

print(7-n)

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

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

for i in range(len(List)):
    if List[i] == date:
        print(i+1)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
def main():
    weekday = [
        "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"
    ]

    S = input().strip()

    ans = len(weekday) - weekday.index(S)
    print(ans)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

s = input()

ans = 7 - d[s]
print(ans)

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:
# AtCoder Beginner Contest 146 - A
# -*- encoding: UTF-8 -*-

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

if s == "SUN" :
  result = 7
else:
  idx = week.index(s)
  result = 6 - idx
  
print(result)

Submission status: Accepted

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

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

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:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,copy,functools
import time,random

sys.setrecursionlimit(10**7)
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 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 pf(s): return print(s, flush=True)
def pe(s): return print(str(s), file=sys.stderr)
def JA(a, sep): return sep.join(map(str, a))
def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)


def main():
    s = S()
    t = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
    for i in range(7):
        if t[i] == s:
            return 7 - i

    return -1


print(main())

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a={ 'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    s=STR()
    print(a[s])
if __name__ == '__main__':
    do()

Submission status: Accepted

Solution code:
def main():
    WEEK = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    w = input()
    d = 7
    for week in WEEK:
        if w == week:
            print(d)
            return
        d -= 1


if __name__ == "__main__":
    main()

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

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

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

print(len(days) - days.index(stS))

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:
import sys
import math
import heapq
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
DVSR = 1000000007
def POW(x, y): return pow(x, y, DVSR)
def INV(x, m=DVSR): return pow(x, m - 2, m)
def DIV(x, y, m=DVSR): return (x * INV(y, m)) % m
def LI(): return [int(x) for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()
def II(): return int(input())
def FLIST(n):
    res = [1]
    for i in range(1, n+1): res.append(res[i-1]*i%DVSR)
    return res
def gcd(x, y):
    if x < y: x, y = y, x
    div = x % y
    while div != 0:
        x, y = y, div
        div = x % y
    return y


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

today = weeks.index(S)
ans = len(weeks[today:6])
if ans == 0:
    print(7)
else:
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s1 = input()

n1 = 0
if s1 == "SUN":
    n1 = 7
elif s1 == "MON":
    n1 = 6
elif s1 == "TUE":
    n1 = 5
elif s1 == "WED":
    n1 = 4
elif s1 == "THU":
    n1 = 3
elif s1 == "FRI":
    n1 = 2
elif s1 == "SAT":
    n1 = 1

print(n1)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

if S == 'SUN' : 
    print(7)
else : 
    print(7-string.index(S))