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:
import sys

youbi = ["MON", "TUE", "WED", "THU", "FRI", "SAT"]
S = input()

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

for i, youbi in enumerate(youbi):
    if S == youbi:
        print(6-i)

Submission status: Accepted

Solution code:
S =input()

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


x =day.index(S)

print(7 - x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(7 - d.index(s))

Submission status: Accepted

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

print(d_dict[s])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


S = input()


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

if S == "SUN":
  print(7)
else:
  print(7 - week[S])

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

Submission status: Accepted

Solution code:
import sys
from io import StringIO
import unittest
import os


# 実装を行う関数
def resolve():
    # 数値取得サンプル
    #   1行N項目 x, y = map(int, input().split())
    #   N行N項目 x = [list(map(int, input().split())) for i in range(n)]

    # 文字取得サンプル
    #   1行1項目 x = input()
    # 数値取得サンプル
    #   1行N項目 x, y = map(int, input().split())
    #   N行N項目 x = [list(map(int, input().split())) for i in range(n)]

    # 文字取得サンプル
    x = input()

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


# テストクラス
class TestClass(unittest.TestCase):
    def assertIO(self, assert_input, output):
        stdout, sat_in = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(assert_input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, sat_in
        self.assertEqual(out, output)

    def test_input_1(self):
        test_input = """SAT"""
        output = """1"""
        self.assertIO(test_input, output)

    def test_input_2(self):
        test_input = """SUN"""
        output = """7"""
        self.assertIO(test_input, output)

    # 自作テストパターンのひな形(利用時は「tes_t」のアンダーバーを削除すること
    def tes_t_1original_1(self):
        test_input = """データ"""
        output = """データ"""
        self.assertIO(test_input, output)


# 実装orテストの呼び出し
if __name__ == "__main__":
    if os.environ.get("USERNAME") is None:
        # AtCoder提出時の場合
        resolve()

    else:
        # 自PCの場合
        unittest.main()

Submission status: Accepted

Solution code:
import sys
from io import StringIO
import unittest
import os


# 実装を行う関数
def resolve():
    # 数値取得サンプル
    #   1行N項目 x, y = map(int, input().split())
    #   N行N項目 x = [list(map(int, input().split())) for i in range(n)]

    # 文字取得サンプル
    x = input()

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


# テストクラス
class TestClass(unittest.TestCase):
    def assertIO(self, assert_input, output):
        stdout, sat_in = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(assert_input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, sat_in
        self.assertEqual(out, output)

    def test_input_1(self):
        test_input = """SAT"""
        output = """1"""
        self.assertIO(test_input, output)

    def test_input_2(self):
        test_input = """SUN"""
        output = """7"""
        self.assertIO(test_input, output)

    # 自作テストパターンのひな形(利用時は「tes_t」のアンダーバーを削除すること
    def tes_t_1original_1(self):
        test_input = """データ"""
        output = """データ"""
        self.assertIO(test_input, output)


# 実装orテストの呼び出し
if __name__ == "__main__":
    if os.environ.get("USERNAME") is None:
        # AtCoder提出時の場合
        resolve()

    else:
        # 自PCの場合
        unittest.main()

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:
mydict = {"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
S = input()
print(mydict[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:
# -*- coding: utf-8 -*-
"""
A - Can't Wait for Holiday
https://atcoder.jp/contests/abc146/tasks/abc146_a

"""
import sys


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


def main(args):
    S = input()
    ans = solve(S)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[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
print(D[input()])

Submission status: Accepted

Solution code:
from calendar import day_name
s = input()

for i in range(7):
    if s == day_name[i][:3].upper():

        ans = 6 - i
        if ans == 0: ans += 7

        print(ans)
        break

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

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

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

print(7-days.index(s))

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

print(7-S.index(s))

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(weekday_dict[S])

Submission status: Accepted

Solution code:
S=input()

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

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

Submission status: Accepted

Solution code:
s = input()

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

print(left_days_next_sunday[s])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
s = S()
if s == 'SUN':
    print(7)
elif s == 'MON':
    print(6)
elif s == 'TUE':
    print(5)
elif s == 'WED':
    print(4)
elif s == 'THU':
    print(3)
elif s == 'FRI':
    print(2)
elif s == 'SAT':
    print(1)

Submission status: Accepted

Solution code:
def cantwaitforholiday(s):

    days = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}
    return days[s]

def main():
    s = str(input())
    print(cantwaitforholiday(s))

if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import decimal # 10進法に変換，正確な計算

def input():
    return sys.stdin.readline().strip()

def main():
    s = input()
    if s[0] == "S":
        if s[1] == "U":
            print(7)
            return
        print(1)
        return
    elif s[0] == "F":
        print(2)
        return
    elif s[0] == "W":
        print(4)
        return
    elif s[0] == "M":
        print(6)
        return
    elif s[1] == "H":
        print(3)
        return
    print(5)
    
    
    
main()

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

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

Submission status: Accepted

Solution code:
from sys import stdin
from sys import setrecursionlimit
import bisect
setrecursionlimit(10 ** 7)

s = input()

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

print(7-li.index(s))

Submission status: Accepted

Solution code:
from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations # (string,3) 3回
from collections import deque
from collections import defaultdict
import bisect
#
#    d = m - k[i] - k[j]
#    if kk[bisect.bisect_right(kk,d) - 1] == d:
#
#
#
# pythonで無理なときは、pypyでやると正解するかも！！
#
#

import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7

def readInts():
  return list(map(int,input().split()))
def I():
  return int(input())
dic = {'SUN':0,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
print(7 - dic[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:
import sys
input = lambda : sys.stdin.readline().rstrip()
mod = 10**9 + 7

days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
d = {}
for i in range(7):
    d[days[i]] = 7 - i
s = input()
print(d[s])

Submission status: Accepted

Solution code:
import sys

def input(): return sys.stdin.readline().strip()
def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(N=None): return list(MAP()) if N is None else [INT() for i in range(N)]
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
sys.setrecursionlimit(10 ** 9)
INF = 10 ** 19
MOD = 10 ** 9 + 7

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
import sys
input = sys.stdin.readline
from collections import *

S = input()[:-1]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

day = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
a = day.index(s)
ans = 7 - a
if ans == 0:
    print(7)
else:
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict
readline = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**5)


def geta(fn=lambda s: s.decode()):
    return map(fn, readline().split())


def gete(fn=lambda s: s.decode()):
    return fn(readline().rstrip())


def main():
    d = {"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}

    print(d[gete()])


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
s = input()
l = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
if s == 'SUN':
    print(7)
else:
    print(6 - l.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:
def main():
  s=input()
  if(s=='SUN'):
    print(7)
  elif(s=='MON'):
    print(6)
  elif(s=='TUE'):
    print(5)
  elif(s=='WED'):
    print(4)
  elif(s=='THU'):
    print(3)
  elif(s=='FRI'):
    print(2)
  else:
    print(1)
    
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:
s = input()
x =['SUN','MON','TUE','WED','THU','FRI','SAT'] 
for i,data in enumerate(x):
  if s == data:
    print(7-i)
    break

Submission status: Accepted

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

day = 7 - index
if day == 0:
  print('7')
else:
  print(day)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(7-list.index(s))

Submission status: Accepted

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

Ss = input().rstrip()

ans = 7 - Ds.index(Ss)
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)
else:
    exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
lis=["SUN","MON","TUE","WED","THU","FRI","SAT"]
ans=7
for i in lis:
    if n==i:
        print(ans)
        break
    ans-=1

Submission status: Accepted

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

def ri():
    return int(input())

def rl():
    return list(input().split())

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
w = "SUN,MON,TUE,WED,THU,FRI,SAT".split(",")

S = input().strip()

for i, d in enumerate(w):
    if d == S:
        print(7 - i)

Submission status: Accepted

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

Submission status: Accepted

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

print(7 - lis.index(S))

Submission status: Accepted

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

s = input()

print(7- lis.index(s))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
for i, j in enumerate(y):
    if s == j:
        print(7-i)

Submission status: Accepted

Solution code:
y = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
for i, j in enumerate(y):
    if s == j:
        print(7-i)
        exit()

Submission status: Accepted

Solution code:
S = input()

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

print(7 - DAYS_TO_NUM[S])

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

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

Submission status: Accepted

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

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


NAME = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
DIC = dict(zip(NAME, range(7, 0, -1)))


def main():
    S = readline().rstrip().decode()
    print(DIC[S])


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = lambda: sys.stdin.readline().rstrip()



def solve():

    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)


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

print(7-a)

Submission status: Accepted

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

if S == week[0]:
  print(7)
elif S == week[1]:
  print(6)
elif S == week[2]:
  print(5)
elif S == week[3]:
  print(4)
elif S == week[4]:
  print(3)
elif S == week[5]:
  print(2)
else:
  print(1)

Submission status: Accepted

Solution code:
import sys
S = sys.stdin.readline().rstrip()

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()
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()
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:
from sys import stdin, setrecursionlimit

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


def main():
    input = stdin.buffer.readline
    s = input()[:-1].decode()
    print(7 - WEEK[s])


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
t='SUN,MON,TUE,WED,THU,FRI,SAT'
m=t.split(",")
for i in range(len(m)):
    if(m[i]==s):
        print(7-i)

Submission status: Accepted

Solution code:
s = input()

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

n = days_of_the_week.index(s)

print(7 - days_of_the_week.index(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

day = int(days.index(s))
#print(day)
print(7-day)

Submission status: Accepted

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

print(youbi[s])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(7):
    if l[i]==w:
        cnt = i
print(7-cnt)

Submission status: Accepted

Solution code:
val = input()

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

Submission status: Accepted

Solution code:
s = input()

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

ans = 7 - days.index(s)
print(ans)

Submission status: Accepted

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