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

Submission status: Accepted

Solution code:
#coding:utf-8
import sys
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = lambda *something : print(*something) if DEBUG else 0
DEBUG = False
def main(given = sys.stdin.readline):
    input = lambda : given().rstrip()
    LMIIS = lambda : list(map(int,input().split()))
    II = lambda : int(input())
    XLMIIS = lambda x : [LMIIS() for _ in range(x)]


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




if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()

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

val = weekDays[s]
print(val)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

print(d.index(s)+1)

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
holidays = ['','SAT', 'FRI','THU','WED','TUE','MON','SUN']
def print_ans(S):
    """Test Case
    >>> print_ans("SAT")
    1
    >>> print_ans("SUN")
    7
    """
    for i, day in enumerate(holidays):
        if S == day:
            print(i)

if __name__ == '__main__':
    S = input().rstrip()
    print_ans(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
weekday = input()

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

ans = 7 - dic_weekday[weekday]

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(7 - youbi[S])

Submission status: Accepted

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

s = input()

d = week.index(s)

print(7 - d)

Submission status: Accepted

Solution code:
S = input()

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

after = [7, 6, 5, 4, 3, 2, 1]

for i, w in enumerate(youbi):
    if S == w:
        print(after[i])

Submission status: Accepted

Solution code:
N = input()

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

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

Submission status: Accepted

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

for i in range(len(a)):
    if s==a[i]:
        print(b[i])

Submission status: Accepted

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

i = 0
while i < len(date):
    if date[i] == S:
        N = 7-i
    i += 1

print(N)

Submission status: Accepted

Solution code:
import sys
if sys.platform =='ios':
	sys.stdin=open('Untitled.txt')
input = sys.stdin.readline

week = ["SUN\n","MON\n","TUE\n","WED\n","THU\n","FRI\n","SAT\n"]
S = input()

print(abs(week.index(S)-7))

Submission status: Accepted

Solution code:
a=input()
if a=="MON":
  print("6")
elif a=="SUN":
  print("7")
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:
a=input()

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

print(s.index(a))

Submission status: Accepted

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

print(S[input()])

Submission status: Accepted

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

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

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

ans = 7 - day[S]
print(ans)

Submission status: Accepted

Solution code:
S = str(input())

x = 0

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

print(x)

Submission status: Accepted

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

s = input()

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

ans = date.index(s.replace("\n", ''))
print(7-ans)

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0
if s == w[0]:
    ans += 7
if s == w[1]:
    ans += 6
if s == w[2]:
    ans += 5
if s == w[3]:
    ans += 4
if s == w[4]:
    ans += 3
if s == w[5]:
    ans += 2
if s == w[6]:
    ans += 1


print(ans)

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

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

print(days[S])

Submission status: Accepted

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

from sys import stdin, stderr

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

def main():
   d = stdin.readline().strip()
   res =  6- dow.index(d)
   if res == 0:
      res = 7
   print(res)

   return 0

if __name__ == '__main__': main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = str(input())
li = ["MON","TUE","WED","THU","FRI","SAT"]
for i in range(len(li)):
    if S == li[i]:
        print(6-i)
        break
if i == 5 and 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:
days = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1 }


s = input()

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

Submission status: Accepted

Solution code:
from __future__ import print_function
# import numpy as np
# import numpypy as np
import sys
input = sys.stdin.readline

def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd

def lcm(n,m):
    return int(n*m/gcd(n,m))

import re
import array
import copy
import functools
import operator

import collections
import itertools
import bisect
import heapq


from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace

from queue import PriorityQueue as pq

def reduce(p, q):
    common = fractions.gcd(p, q)
    return (p//common , q//common )
# from itertools import accumulate
# from collections import deque

import random


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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S = str(input())

if S == 'SUN':
	print(7)
	
if S == 'SAT':
	print(1)
	
if S == 'MON':
	print(6)
	
if S == 'TUE':
	print(5)

if S == 'WED':
	print(4)
	
if S == 'THU':
	print(3)
	
if S == 'FRI':
	print(2)

Submission status: Accepted

Solution code:
S = input()

weeks = ['SUN','MON','TUE','WED','THU','FRI','SAT']
weeks.reverse()
print(weeks.index(S)+1)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    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:
week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT", ""]
week.reverse()
day = input()
print(week.index(day))

Submission status: Accepted

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

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

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


pos = weeldays.index(S)
print(7-pos)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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:
a = 'SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'
print(7 - a.index(input()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(s)

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    S = input()

    week = ('MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN')
    if S == 'SUN':
        ans = 7
    else:
        ans = 6 - week.index(S)
    print(ans)


main()

Submission status: Accepted

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

inday = input()

print(7-day[inday])

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()

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

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

Submission status: Accepted

Solution code:
S = str(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()
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:
N = input()

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

print(day_d[N])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!Python3.4.3

# SUN,MON,TUE,WED,THU,FRI,SAT 
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
days = reversed(days)

s = input()

for i, day in enumerate(days):
    if s == day:
        print(i+1)

Submission status: Accepted

Solution code:
import math


def main():
    S = input()
    arr = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT',
           'SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    ans = 0
    flag = False

    if S == 'SUN':
        print(7)
        return

    for i in range(len(arr)):
        if arr[i] == S:
            flag = True

        if flag and arr[i] == 'SUN':
            break

        if flag:
            ans += 1

    print(ans)



if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
import sys
import math
import numpy as np
import itertools

# 文字列を一文字ずつのリストに代入 test は['t', 'e', 's', 't']
m = list(input())

if m[0]=='S':
    if m[1]=='U':
        print("7")
    else:
        print("1")
elif m[0]=='M':
    print("6")
elif m[0]=='T':
    if m[1]=='U':
        print("5")
    else:
        print("3")
elif m[0]=='W':
    print("4")
elif m[0]=='F' :
    print("2")

Submission status: Accepted

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

Submission status: Accepted

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

import math
import itertools

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

Submission status: Accepted

Solution code:
day_list = [ "SUN","MON", "TUE", "WED", "THU", "FRI", "SAT"]
day = input()
result_index = None
for index in range(len(day_list)):
    if day == day_list[index]:
        result_index = index
print(7-result_index)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(7-Week[S])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()

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

for i, x in enumerate(x_lst):
    if x == S:
        print(7 -i)
        break

Submission status: Accepted

Solution code:
s = input()

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

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

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

S = input()
judge(S)

Submission status: Accepted

Solution code:

s = input()

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

l = w.index(s)

print(7-l)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(5 * 10**5)
input = sys.stdin.readline

d = input().rstrip('\n')

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

Submission status: Accepted

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

x=a.index(b)

print(7-x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

cnt = 0
for x in s:
    if S == x:
        print(7 - cnt)

    else:
        cnt += 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:
import os
import numpy as np

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


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

    os.sys.exit(0)

Submission status: Accepted

Solution code:
s = str(input())

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

print(7-day.index(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        # for line in sys.stdin:
        #     lines.append(line)
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    s = lines[0]

    return (s, )


def solve(s):

    week = dict()
    week["SUN"] = 7
    week["MON"] = 6
    week["TUE"] = 5
    week["WED"] = 4
    week["THU"] = 3
    week["FRI"] = 2
    week["SAT"] = 1

    return  week[s]

def main():
    # 出力
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

f = sys.stdin
s = f.readline()[:-1]
week = {'SUN': 0, 'MON': 1, 'TUE': 2, 'WED': 3, 'THU': 4, 'FRI': 5, 'SAT': 6}

day = 7 - week[s]
print(day)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s_list = ["SUN","SAT","FRI","THU","WED","TUE","MON"]
s = input()
for i in range(7):
    #print(i)
    if s_list[i] == s:
        if s == "SUN":
            print(7)
        else:
            print(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:
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()
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
res = 7 - days.index(s)
print(res)