Problem:


Score : 100 points

Problem Statement

Given is a string S representing the day of the week today.

S is SUN, MON, TUE, WED, THU, FRI, or SAT, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.

After how many days is the next Sunday (tomorrow or later)?

Constraints

S is SUN, MON, TUE, WED, THU, FRI, or SAT.

Input

Input is given from Standard Input in the following format:

S

Output

Print the number of days before the next Sunday.

Sample Input 1

SAT

Sample Output 1

1

It is Saturday today, and tomorrow will be Sunday.

Sample Input 2

SUN

Sample Output 2

7

It is Sunday today, and seven days later, it will be Sunday again.



Sample input:
SAT


Sample output:
1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
ans=0
day = sys.stdin.readline()
if day == "SUN":
  ans=7
elif day=="MON":
  ans=6
elif day=="TUE":
  ans=5
elif day=="WED":
  ans=4
elif day=="THU":
  ans=3
elif day=="FRI":
  ans=2
elif day=="SAT":
  ans=1
sys.stdout.write(str(ans))
sys.stdout.flush()

Submission status: Wrong Answer

Solution code:
import sys
def nextHoliday(day):
  ret=""
  days=['SUN','MON','TUE','WED','THU','FRI','SAT']
  for i in range(7):
    if days[i] == day:
      ret=str(7-i)
      break
  return ret
day = sys.stdin.readline()
output=nextHoliday(day)
sys.stdout.write(output)
sys.stdout.flush()

Submission status: Wrong Answer

Solution code:
import sys
def nextHoliday(day):
  try:
    days={'SUN':'7','MON':'6','TUE':'5','WED':'4','THU':'3','FRI':'2','SAT':'1'}
    return days[day.upper()]
  except:
    return "not a day"
  
day = sys.stdin.readline()
output=nextHoliday(day)
sys.stdout.write(output)
sys.stdout.flush()

Submission status: Wrong Answer

Solution code:
def nextHoliday(day):
    days={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    return days[day.upper()]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Solution code:
s_list=['SUN','MON','TUE','WED','THU','FRI','SAT']
s=input()
ans=""
for i in range(len(s_list)):
  if s==s_list[i]:
    if i+1==len(s_list):
      ans=s_list[0]
    else:
      ans=s_list[i+1]
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
list = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
S = input()
for i in range(len(list)):
    if S == list[i] :
        print("{}".format((7 - i) % 7))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()

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

Submission status: Wrong Answer

Solution code:
n = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
j=0
ref=["SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in range(2):
  if S==ref[i]:
    j=i+1
print(j)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
day = input()

if day == 'SUN' :
    print (7)

if day == 'MON' :
    print (6)

if day == 'TUE' :
    print (5)

if day == 'WEd' :
    print (4)

if day == 'THU' :
    print (3)

if day == 'FRI' :
    print (2)

if day == 'SAT' :
    print (1)

Submission status: Wrong Answer

Solution code:
day = input()

if day == 'SUN' :
    print (7)

if day == 'MON' :
    print (1)

if day == 'TUE' :
    print (2)

if day == 'WEd' :
    print (3)

if day == 'THU' :
    print (4)

if day == 'FRI' :
    print (5)

if day == 'SAT' :
    print (6)

Submission status: Wrong Answer

Solution code:
Day=input()
if Day == "SUN":
    print("7")
elif Day == "MON":
    print("6")
elif Day == "TUE":
    print("5")
elif Day == "WED":
    print("4")
elif Day == "THU":
    print("3")
elif Day == "FRI":
    print("2")
elif Day == "STU":
    print("1")
else:
    print("無効な入力です")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def next_sunday(today):
	days = {"MON": 1, "TUE": 2, "WED": 3, "THU": 4, "FRI": 5, "SAT": 6, "SUN": 7}
	try:
		ans = days[today]
    
	except KeyError:
		print("This days does not exist!")
    
	return ans

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = input()

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

print(l.index(s)+1)

Submission status: Wrong Answer

Solution code:
S = input()

if S=='SUN':
    print(0)
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: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from datetime import date
S = input('')
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
today = 'SAT'
days_from_today = (days[days.index(today) + 1:] + days[:days.index(today) + 1]).index(S)
print(days_from_today + 1)

Submission status: Wrong Answer

Solution code:
from datetime import date
S = input('')
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
today = days[(date.today().weekday() + 1)]
days_from_today = (days[days.index(today) + 1:] + days[:days.index(today) + 1]).index(S)
print(days_from_today + 1)

Submission status: Wrong Answer

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

a = input()
print(s.index(a)+1)

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

Submission status: Wrong Answer

Solution code:
print(sum(map(ord,input()))**698%6329%8)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
S= str(input())
l = ["MON","TUE","WED","THU","FRI","SAT", "SUN"]
i=1
for w in l:
    if w == S:
        print(i)
    else:
        i += 1

Submission status: Wrong Answer

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

if len(day) - day.index(i) == 0:
    print(7)
else:
    print(len(day) - day.index(i) - 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import numpy as np
s = input()
slist = np.array(['SUN','MON','TUE','WED','THU','FRI','SAT'])
i = np.where(slist==s)[0]
  
print(7-i)

Submission status: Wrong Answer

Solution code:
s = input()

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


if s == 'SUN':
  print(0)
  exit()
else:
  print(7 - a.index(s))

Submission status: Wrong Answer

Solution code:
s = input()

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


if s == 'SUN':
  print(0)
  exit()
else:
  print(a.index(s))

Submission status: Wrong Answer

Solution code:
n=input()
if n=='SUN':
  print(7)
elif n=="MON":
  print(1)
  
elif n=="TUE":
  print(2)
elif n=="WED":
  print(3)
elif n=="THU":
  print(3)
elif n=="FRI":
  print(2)
elif n=="SAT":
  print(1)

Submission status: Wrong Answer

Solution code:
S=input()
if S=="SUM":
  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: Wrong Answer

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

s = input().strip()

print(hmap[s])

Submission status: Wrong Answer

Solution code:
ls=[0,'MON','TUE','WED','THU','FRI','SAT','SUN']
x=input()
for i in range(8):
  if x==ls[i]:
    print(i)
    break

Submission status: Wrong Answer

Solution code:
s =str(input())

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
dic = {}
dic['SAT'] = 1
dic['MON'] = 2
dic['TUE'] = 3
dic['WED'] = 4
dic['THU'] = 5
dic['FRI'] = 6
dic['SUN'] = 7
print(dic[input()])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
xx=["SUN", "MON", "TUE", "WED", "THU", "FRI","SAT"]
ans=[0,6,5,4,3,2,1]
s=input().strip()
print(ans[xx.index(s)])

Submission status: Wrong Answer

Solution code:
def main():
  mapping = {
    "SUN": 0,
    "MON": 1,
    "TUE": 2,
    "WED": 3,
    "THU": 4,
    "FRI": 5,
    "SAT": 6,
  }


  S = input()
  return 7-mapping[S]

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = dict()

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

print(a[input()])

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

if S == "SUN":
    print("0")
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: Wrong Answer

Solution code:
S=input()

if S == "SUN":
    print("0")
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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(day["SUN"] - day[str])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#import pysnooper
#import numpy
#import os,re,sys,operator
#from collections import Counter,deque
#from operator import itemgetter
#from itertools import accumulate,combinations,groupby,combinations_with_replacement,permutations
from sys import stdin,setrecursionlimit
#from bisect import bisect_left
#from copy import deepcopy
#import heapq
#import math
#import string
#from time import time
#from functools import lru_cache
setrecursionlimit(10**6)
input=stdin.readline

s=input().rstrip()
a=["","SAT","MON","TUE","WED","THU","FRI","SUN"]
print(a.index(s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())
ans = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(7):
    if i != 6 and s == a[i]:
        print(int(7-i))
        break
    elif i == 6:
        print(1)

Submission status: Wrong Answer

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

for i in range(7):
    if i != 6 and s == a[i]:
        print(int(7-i))
    elif i == 6:
        print(1)

Submission status: Wrong Answer

Solution code:
s = str(input())
a = ["SUN","MON","TUE","WED","THE","FRI","SAT"]

for i in range(7):
    if i != 6 and s == a[i]:
        print(int(7-i))
    elif i == 6:
        print(1)

Submission status: Wrong Answer

Solution code:
S = input()
s = {'SUN':'日曜日', 'MON':'月曜日', 'TUE':'火曜日', 'WED':'水曜日', 'THU':'木曜日', 'FRI':'金曜日', 'SAT':'土曜日'}
X = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}

print('今日は{}です。よって、次の日曜日は{}日後です。'.format(s[S], X[S]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())
a = ["SUN","MON","TUE","WED","THE","FRI","SAT"]

i = 0
for i in range(7):
    if i != 6:
        print(int(7-i))
        break
    else:
        print(1)
        break

Submission status: Wrong Answer

Solution code:
s = str(input())
a = ["SUN","MON","TUE","WED","THE","FRI","SAT"]

i = 0
for i in range(7):
    if i != 6 and s == a[i]:
        print(int(7-i))
        break
    else:
        print(1)
        break

Submission status: Wrong Answer

Solution code:
s = str(input())
a = ["SUN","MON","TUE","WED","THE","FRI","SAT"]

i = 0
for i in range(7):
    if i != 6 and s == a[i]:
        if i == 0:
            print(7)
            break
        else:
            print(int(6-i))
            break
    else:
        print(1)
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())
a = ["SUN","MON","TUE","WED","THE","FRI","SAT"]

i = 0
for i in range(7):
    if i != 6 and s == a[i]:
        if i == 0:
            print(7)
            break
        else:
            print(int(7-i))
            break
    else:
        print(1)
        break

Submission status: Wrong Answer

Solution code:
S = "SUN"

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

Solution code:
n = input()
if n == 'SUM':
  print('7')
elif n == 'MUN':
  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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input('S')
print()

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=str(input())
list=["Sun","Mon","Tue","Wed","Thr","Fri","Sat"]
for i in range(6):
  if S==list[i]:
    print(7-i)

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
S = str(input())

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

print(L.index(S))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(youbi.index(S))

Submission status: Wrong Answer

Solution code:
S = input()

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

O = mydict[S]

print(O)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

for i,j in enumerate(li):
    if(S==j):
        print(i+1)

Submission status: Wrong Answer

Solution code:
s = input('S')

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S = input()

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

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

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

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

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

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

else:
    print("1")

Submission status: Wrong Answer

Solution code:
S = input()

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

print(nextSunday[S])

Submission status: Wrong Answer

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

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

for i,j in enumerate(li):
    if(S==j):
        print(i+1)

Submission status: Wrong Answer

Solution code:
list2 = ['MON','TUE','WED','THU','FRI','SAT','SUN']
a = input()
i=0
while list2[i] != a:
  i+=1
print(i+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for idx, day in enumerate(weekdays):
    if day == S:
        print((7 - idx) % 7)
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = input()

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

Submission status: Wrong Answer

Solution code:
def solve():
    S = input()
    day = ["MON","TUE","WED","THU","FRI","SAT","SUN"]
    for i in range(len(day)):
        if S == "SUN":
            print(7)
        elif S == day[i]:
            print(6-i)
if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#     Hariom_Pandey
#      24.11.2019

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

Submission status: Wrong Answer

Solution code:
s = input('S:')

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

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

Submission status: Wrong Answer

Solution code:
names = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s = input().strip()
for j,name in enumerate(names):
  if s == name:
    print(names[(j+1)//7])

Submission status: Wrong Answer

Solution code:
a = input()
b = 0

if a == 'SAT':
  b=6
elif a=='MON':
  b=1
elif a=='TUE':
  b=2
elif a=='WED':
  b=3
elif a=='THU':
  b=4
elif a=='FRI':
  b=5
else :
  b=7

print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

idx = weekdays.index(s)

ans = (idx + 1) % len(weekdays)

print(weekdays[ans])

Submission status: Wrong Answer

Solution code:
N = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Nnew = input()

while 1:
    i = i+1
    if i>6:
        i=0
    if youbi[i] == Nnew:
        break
print (i+1)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
s = input()
day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
for i, d in enumerate(day):
    if s == d:
        print(7-i)

Submission status: Wrong Answer

Solution code:
s = input('S:')

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