TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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)?

Submission attempts (in order):
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)

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)

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
# coding: utf-8

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


# coding: utf-8

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


Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
s=input()
t=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(7):
    if s=t[i]:
        print(7-i)
        break

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
S = input()
print(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)
else:
    print(1)

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)

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
s = input()
week = ("SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT")

print(7 - index.week(s))

s = input()
week = ("SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT")

print(7 - week.index(s))

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
s=input()
t=["SUN","MON","TUE","WED","THU","FRI","SAT"][::-1]
i=t.index(s)
print(6-i)

s=input()
t="SUN,MON,TUE,WED,THU,FRI,SAT".split(",")
print(7-t.index(s))


Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
a, b, x = map(int, input().split())
ans =0
left = 0
right = 10**9+1

def dN(n):
  return len(str(n))

def cal_price(a, b, n):
  return a*n + b*dN(n)

while right - left > 1:
  mid = (left + right)//2
  if a*mid + b*dN(mid) > x: right = mid
  else: left = mid
    
print(left)

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
import math
A,B,X = list(map(int, input().split()))

def nedan(n):
    return A*n + B*int(math.log10(n)+1)

if nedan(1000000000) <= X:
    print(1000000000)
else:
    min = 0
    max = 1000000000
    while(True):
        if nedan((max+min)//2) <= X:
            min = (max+min)//2
        else:
            max = (max+min)//2
        
        if abs(max-min)<=1:
            break

if nedan(max) <= X:
    print(max)
else:
    print(min)



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

print(7-L.index(S))

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
if scan()=="SUN":
  print("7")
elif scan()=="MON":
  print("6")
elif scan()=="TUE":
  print("5")
elif scan()=="WED":
  print("4")  
elif scan()=="TUH":
  print("3")
elif scan()=="FRI":
  print("2")
else:
  print("1")

week =input()

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
s=input()
day=['SUN','MON','TUE','WED','THU','FRI','SAT'] 
print(day.index(s)+2)

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
S=input()
list=[SUN,MON,TUE,WED,THU,FRI,SAT]
print(7-list.index(S))

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
S = input()

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

for d in len(days):
  if S == days[d]:
    break

print(6 - d)

S = input()

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

for d in len(days):
  if S == d:
    break

print(6 - d)

S = input()

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

for d in len(days):
  if S == days[d]:
    break

print(6 - d)

S = input()

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

for i in range(len(days)):
  if S == days[i]:
    break

print(7 - i)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
week = ['SUN','MON','TUE','WED','THU','FRI','SAT' ]
print(week[(week.index(input)+1)%7])

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
a,b,x=map(int,input().split())
h=1
if a+b<=x<10*a+2*b:
    h=1
if 10*a+b*2<=x<100*a+3*b:
    h=2
if 100*a+b*3<=x<1000*a+4*b:
    h=3
if 1000*a+b*4<=x<10000*a+5*b:
    h=4
if 10000*a+b*5<=x<100000*a+6*b:
    h=5
if 100000*a+b*6<=x<1000000*a+7*b:
    h=6
if 1000000*a+b*7<=x<10000000*a+8*b:
    h=7
if 10000000*a+b*8<=x<100000000*a+9*b:
    h=8
if 100000000*a+b*9<=x<1000000000*a+10*b:
    h=9
if x>=1000000000*a+10*b:
    print(1000000000)
elif x<a+b:
    print(0)
else:
    d=0
    for i in range(10**(h-1),10**h):
        if i*a+b*h>x:
            print(d)
            break
        else:
            d=i
    else:
        print(d)

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
day = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

in_day = input();

if in_day == day[x]:
  print(7 - x)
  
  

S = input()

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

print(7 - days.index(S))

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
 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)
else:
  pass

s = input()

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

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)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
a, b, x = [int(x) for x in input().split(' ')]

prev_max_number = 0
answer = -1
for i in range(10):
    baseline = b * (i + 1)
    offset = (x - baseline) // a
    min_number = (10 ** i)
    max_number = (10 ** (i + 1)) - 1

    if offset < min_number:
        answer = prev_max_number
        break

    if offset < max_number:
        answer = offset
        break

    prev_max_number = max_number

if answer < (10 ** 9):
    print(answer)
else:
    print(10 ** 9)


days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input().rstrip()
index = days.index(s)
for i in range(7):
    ni = (index + i + 1) % 7
    if days[ni] == 'SUN':
        print(i + 1)
        break


Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
A, B = map(int, input().split())
if A-2*B > 0:
    print(A-2*B)
else:
    print('0')

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


Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
day_list1 = ['SUN','MON','TUE','WED','THU','FRI','SAT']
day_list2 = ['MON','TUE','WED','THU','FRI','SAT','SUN']
S=str(input())
print(day_list2[day_list1.index(S)])

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

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
S = input('Day of the week')
print()
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)


S = input('week>')
print()
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('Day of the week')
print()
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('Day of the week')
print()
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)


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)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
S = input()

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

for i in day:
  if i == S:
    print(counter)
  counter = counter + 1
    

S = input()

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

for i in day:
  if i == S:
    print(counter)
  counter = counter - 1

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
A,B,X = map(int, input().split())

def money(n):
    re = A*n + B*len(str(n))
    return re

tmp = 0
if X >= money(1000000000):
    print(1000000000)
elif X < money(1):
    print(0)
else:
    left = 0
    right = 10**9
    while 1:
        mid = (left + right) // 2
        if money(mid) == X or right - left <= 1:
            print(mid)
            break
        elif money(mid) < X:
            left = mid
        elif money(mid) > X:
            right = mid

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)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
a, b, x = [int(i) for i in input().split()]

i = 0

while True:
    
    price = a * (10**i) + b * (i+1)
    if price > x:
        break
    else:
        i += 1

x -= b * i
n = x//a

print(min(n,10**9))

s = input()

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

print(n)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
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 == "SUT":
  print(1)

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

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)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):

weekday = input()

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


weekday = input()

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
from collections import deque

N, AB = map(int, open(0).read().split())
B = AB[1::2]

E = [[] for _ in range(N + 1)]
for a, b in zip([iter(AB)] * 2):
    E[a].append(b)

Q = deque([1])
C = [0] * (N + 1)
while Q:
    v = Q.popleft()
    c = 0
    for u in E[v]:
        c += 1 + (c + 1 == C[v])
        C[u] = c
        Q.append(u)

print(max(C))
for b in B:
    print(C[b])


a = input()

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
import sys
row = sys.stdin.readline
def read_string(row):
    return row().rstrip()

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

import sys
row = sys.stdin.readline
def read_string(row):
    return row().rstrip()

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

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
a=input()
if a==SUN:
  print(7)
elif a==MON:
  print(6)
elif a==TUE:
  print(5)
elif a==WED:
  print(4)
elif a==THU:
  print(3)
elif a==FRI:
  print(2)
elif a==SAT:
  print(1)

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):

S = input()


if S == "SUT":
  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:
  print("入力内容が間違っています。")


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:
  print("入力内容が間違っています。")

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
S = input()
weeddays = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
index = weeddays.index(S) + 1
print(index)


S = input()
weeddays = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
weeddays.reverse()
index = (weeddays.index(S) + 1) % 8
print(index)


Verdicts: Wrong Answer

Accepted
Problem: 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)?

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


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


Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
s = input()
v = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
i = 7
for w in v:
  if s != v[i]:
    i -= 1
  else:
    print(i)
    break

s = input()
v = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
i = 7
for w in v:
  if s != w:
    i -= 1
  else:
    print(i)
    break

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
a,b,x = map(int,input().split())
mi = 0
ma = 10**9+1
while ma-mi>1:
  me = int((mi+ma)/2)
  if a*me+b*len(str(me))<=x:
    mi = me
  else:
    ma = me
print(mi)

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

else :
		print(7)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
S = input()

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


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


Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
s = input()
l = ['SUN','MON','TUE','WED','THU','FRI','SAT'] 

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

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
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')

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

# abc146_a



# 7 = 'SUN'
# 6 = 'MON'
# 5 = 'TUE'
# 4 = 'WED'
# 3 = 'THU'
# 2 = 'FRI'
# 1 = 'SUT'

week = input('曜日を入力してね！ ')

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

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

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

if week == 'WED':
    print('4')

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

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

if week == 'SUT':
    print('1')


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 == 'SUT':
    print('1')



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

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 == 'SUT':
    print(1)



S = input('曜日を入力してね！ ')

if S == 'SUN':
    result = 7

elif S == 'MON':
    result = 6

elif S == 'TUE':
    result = 5

elif S == 'WED':
    result = 4

elif S == 'THU':
    result = 3

elif S == 'FRI':
    result = 2

elif S == 'SAT':
    result = 1

print(result)

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
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)


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)

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)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):

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


s = input()
week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in len(s):
    if s == week[i]:
        print(7 - i)
        break


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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
s = input()
d = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
print(d[(d.index(s)+1)%7])

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

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
day = input()
 
if(day=="SUN"):
  print(7)
elif(day=="MON"):
  print(6)
elif(day=="TUE"):
  print(5)
elif(day=="WEN"):
  print(4)
elif(day=="THU"):
  print(3)
elif(day=="FRI"):
  print(2)
elif(day=="SAT"):

day == input()

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
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='AST'
  print(1)

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)

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=='AST'
  print(1)

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)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
a,b,x = map(int, input().split() )

x_s = str(x)
n = len(x_s)

cnt = 0

if(a * 1 + b > x):
  cnt = 0
elif( x >= a * 1000000000 + b * 10):
  cnt = 1000000000
else:
  for i in range( int(x//a), -1, -1 ):
    i_s = str(i)
    n = len(i_s)
    
    if( a * i + b * n <= x ):
      cnt = i
      break
  

print(cnt)

s = input()

cnt = 0

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
n = int(input())
s = input()
a = ''
for i in range(0,len(s)):
   cc = 65+ (ord(s[i]) + n - 65)%26
   a += chr(cc)

print(a)

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

ans = a.get(s)
print(ans)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
s = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(s.index(input())+1)

import sys
input = sys.stdin.readline

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

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
s = input()

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

ans = l.index(s)

if ans == 0:
    ans = 7

print(ans)

s = input()

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

i = l.index(s)

ans = abs(i - 7)

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
a=input()
if a=="SUN":
 b=7
if a=="MON":
 b=6
if a=="TUE":
 b=5
if a=="WED":
 b=4
if a=="THU":
 b=3
if a=="FRI":
 b=2
if a=="SET":
 b=1
print(b)

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
from sys import stdin, stdout

if __name__ == '__main__':
  S = stdin.readlines().replace("\n","")
  d = {'SUN':7, "MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1}
  stdout.writelines("%d" % d[S])

if __name__ == '__main__':
    S = input()
    d = {'SUN':7, "MON":6, "TUE":5, "WED":4, "THU":3, "FRI":2, "SAT":1}
    if d.get(S, False):
        print(d[S])
    else:
        res = -1
        for i in d.keys():
            if i in S or i.lower() in S:
                res = d[i]
                break
        print(res)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
s = input()

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

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)
    

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
import math

[a,b,x] = [int(a) for a in input().split()]

start = 0
end = int(1e9)

cost = 0
while start <= end:
	n = int(start+(end-start)/2)
	cost = a * n + b * len(str(n))
	# if cost == x:
	# 	break
	if cost < x:
		start = n+1;
	else:
		end = n-1;

print(max(0, start-1))



import math

a = input()

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

print(b[a])


Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
S_list = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
S = input()
print(S_list)
for i, s in enumerate(S_list):
    if S == s:
        print(7-i)

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

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
s = input()
A =['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON','SUN']
for i in range(7):
  if A[i] == S:
    print(i+1)
    break


s = input()
A =['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON','SUN']
for i in range(1, 8):
  if A[i] == S:
    print(i)
    break

S = input()
A =['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON','SUN']
for i in range(7):
  if A[i] == S:
    print(i+1)
    break



Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
s={'SAT':1,'FRI':2,'THU':3,'WED':4,'TUE':5,'MON':6,'SUN':7}
print({}.format(s[input()]))

print('SAFRTHWETUMOSU'.find(input()[:2])//2+1)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
# 166A







#


#  S


# ABC or ARC
S = input()

if S == 'ABC':
    answer = 'ARC'
elif S == 'ARC':
    answer = 'ABC'

print(answer)

# 146A






# S


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

print(result)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
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)

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)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
x = input()
week.index(x)
print(7-x)

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

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
S = input()

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

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)
  

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
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)

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)

Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):
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)

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

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
w = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()

print(w[(w.index(S) + 1) % 7])


w = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
S = input()
res = abs(w.index("SUN") - w.index(S))
if res == 0:
    res = 7
print(res)


Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
s=input()
l=[SUN,MON,TUE,WED,THU,FRI,SAT]
print(7-l.index(s))

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


Verdicts: Runtime Error

Accepted
Problem: 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)?

Submission attempts (in order):

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)




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

num=0
Nnew = input()

for i in range(len(youbi)):
    if Nnew == youbi[i]:
        break

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



Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
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日後です。')

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)

Verdicts: Wrong Answer

Accepted
Problem: 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)?

Submission attempts (in order):
A,B,X = map(int,input().split())
#print(A,B,X)
out=0
for i in range(X):
	num = i
	price = A*num+B*len(str(num)) 
	if price < X:
		out = num
	else:
		break

print(out)

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)

Verdicts: Runtime Error

Accepted