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):
input_line = int(input())
for i in range(input_line):
  s = input().rstrip().split(' ')
  return 7 - ['SUN','MON','TUE','WED','THU','FRI','SAT'].index(s[0])

input_line = int(input())
for i in range(input_line):
	s = input().rstrip().split(' ')
return 7 - ['SUN','MON','TUE','WED','THU','FRI','SAT'].index(s[0])

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

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

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






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





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


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):
a, b, x = [int(i) for i in input().split()]
for i in range(1,10):
  n = (x-b*i)/float(a)
  if n<0:
    if i==9:
      print(0)
    continue
  if len(str(int(n)))==i:
    print(int(n)+1)
    break
  elif i==9:
    print(10**9)

a, b, x = [int(i) for i in input().split()]
for i in range(1,10):
  n = (x-b*i)/float(a)
  if n<0:
    if i==9:
      print(0)
    continue
  if len(str(int(n)))==i:
    print(int(n)-1)
    break
  elif i==9:
    print(10**9)

a, b, x = [int(i) for i in input().split()]
for i in range(1,10):
  n = (x-b*i)/float(a)
  if n<0:
    if i==9:
      print(0)
    continue
  if len(str(int(n)))==i:
    print(int(n))
    break
  elif i==9:
    print(10**9)

s = str(input())
lst = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

print(7-int(lst.index(s)))

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):
n = int(input())
s = [{0} for i in range(n)]

ans = [0] * n
a = 0
b = 0
sp = {i for i in range(n)}
for i in range(1,n):
    a,b = list(map(int,input().split()))
    ans[i] = min(sp-(s[a-1]|s[b-1]))

    s[a-1].add(ans[i])
    s[b-1].add(ans[i])

print(max(ans))
for i in range(1,n):
    print(ans[i])
    
    
   





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

s = input()
print(d[s])

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

s = input()
print(d[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):
A, B, X = map(int, input().split())
lb = -1
ub = X

while ub - lb > 1:
    mid = (lb + ub) // 2
    if A*mid + B*len(str(mid)) > X:
        ub = mid
    else:
        lb = mid
print(min(10**9,lb))

#a,b = map(int,input().split())
s = str(input())
S = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-S.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):
a,b,x = map(int, input().split())

s = int(x/a)

for i in range(s,-1,-1):
  if a*i+b*len(str(i)) <= x:
    if i >= 10**9:
      print(10**9)
      exit()
    print(i)
    exit()
print(0)

a,b,x = map(int, input().split())

s = int(x/a)
X = x - b*len(str(s))
if X < 0:
  print(0)
  exit()

for i in range(s,-1,-1):
  if a*i+b*len(str(i)) <= x:
    if i >= 10**9:
      print(10**9)
      exit()
    print(i)
    exit()
print(0)

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

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):
import math

a,b,x = map(int,input().split())

i = 1
num = 1
while (x - b*i) / a >= num:
	i += 1
	num *= 10

i -= 1
num //= 10
hikaku = (x - b*i) / a
#hikaku = min(hikaku,10**i-1)

if i > 9:
	print(1000000000)
elif i == 0:
	print(0)
else:
	#print(math.floor(hikaku))
	for n in range(math.floor(hikaku)-2,num*10):
		if a * n + b * i >= x:
			break
	print(n-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: 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):
num = {'SUN':0,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
s = input()
print(num[s])

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

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

print(7 - dict[S])

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

char_list  = [chr(i) for i in range(65, 65+26)]

ans_char = ""
move_number = move_num
for input_char in input_char_str:
    if (char_list.index(input_char)+move_number) < len(char_list):
        ans_char += char_list[char_list.index(input_char)+move_number]
    else:
        char_index = (char_list.index(input_char)+move_number) - len(char_list)
        ans_char += char_list[char_index]
        
print(ans_char)

input_day = input()

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

print(day_dict[input_day])

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

rot = int(input())
s = input()
g = (chr((ord(c) - ord('A') + rot) % 26 + ord('A')) for c in s)
print(g)

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

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

for i in len(r):
  if s == r[i]:
    print(7-i)

s = input()
r = ['SUN','MON','TUE','WED','THU','FRI','SAT']

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

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

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)

s = input()
day = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
for i, d in enumerate(day):
    if s == d:
        print(int(7-i))

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):
a, b, x = map(int, input().split())
e = False
first = True
n = 0
chk = ''

if a * 1000000000 + b * len(str(1000000000)) <= x:
    print(1000000000)
    exit()


n = int((x -(len(str(int(x // a)))*b))//a) - 1000000
if n < 0:
    n = 0
    
while e == False:
    p = a * n + b * len(str(n))
    if p <= x:
        chk = 'kaeru'
    elif p > x:
        chk += 'kaenai'
    if first == True and chk == 'kaenai':
        print(0)
        break
        
    if chk == 'kaerukaenai':
        print(n - 1)
        break
    n += 1
    first = False


a, b, x = map(int, input().split())
e = False
first = True
n = 0
chk = ''

if a * 1000000000 + b * len(str(1000000000)) <= x:
    print(1000000000)
    exit()

if x - (a+b) > 0:
    n = a+b-1
    
    
while e == False:
    p = a * n + b * len(str(n))
    if p <= x:
        chk = 'kaeru'
    elif p > x:
        chk += 'kaenai'
    if first == True and chk == 'kaenai':
        print(0)
        break
        
    if chk == 'kaerukaenai':
        print(n - 1)
        break
    n += 1
    first = False

s = input()
a = ''
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 == 'SAT':
    a = 1
    
print(a)

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

S=input()
D={"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
print(D[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):
import sys
A, B, X = map(int, input().split())
def ne(n):
    return A*n + B*len(str(n))
if ne(10**10) <= X:
    print(10**10)
    sys.exit()
high = 10**10
low = 0
ans = (high + low) // 2
while (low < high):
    if ans == 0:
        print(0)
        sys.exit()
    if ne(ans) <= X:
        if ne(ans+1) > X:
            print(ans)
            sys.exit()
        low = ans
    else:
        high = ans
    ans = (high + low) // 2
print(ans)

import sys
S = input()
day = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in range(7):
    if S==day[i]:
        print(i+1)
        sys.exit()

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


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

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

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

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

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

k=1
while k<=7:
  if s==days[k]:
    print(k)
  else:
    k+=1
    


s = str(input())

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

k=1
while k<=7:
  if s==days[k]:
    print(k)
  else:
    k+=1
    

s = str(input())

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

print(7-days.index(s))
    


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


ketasu = 20
while True:
    if ketasu == 0:  
        n=0
        break
    Bdn = ketasu * B
    min_num = 1*10**(ketasu-1)
    min_P = min_num * A + Bdn
    if min_P > X:
        ketasu -= 1
        continue
    else:  
        n = (X-Bdn) // A
        if n == 10**ketasu:  
            n -= 1
        break
if n>10**9:
    print(10**9)
else:
    print(n)



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

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

print(7-index(input()))

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

print(7-S.index(input()))

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

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

s=input()
l=["SUN","MON","TUE","WED","THU","FRI","SAT",]
for i in range(7):
    if s==l[i]:
        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):
def nextHoliday(day):
    days={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    return days[day.upper()]

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

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

 

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

 

import sys
def nextHoliday(day):
    days={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    return days[day.upper()]
  
day = sys.stdin.readline()
output=nextHoliday(day)
print(output)


print 2

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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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


s = input()
week = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
for i in range(6):
    if s == week[i]:
        print(6 - i)
if s == "SUN":
    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 sys
def input(): return sys.stdin.readline().rstrip()
def main():
    a,b,x=map(int,input().split())
    if a+b>x:
        print(0)
        sys.exit()
    for i in range(9,0,-1):#d(N)
        if x-b*i<a*10**(i-1):
            continue
        print(min(10**9,(x-b*i)//a))
        sys.exit()

if __name__=='__main__':
    main()

s=["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-int(s.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):
n = int(input())
ki = [[]for j in range(n)]
for i in range(n-1):
	    a,b=map(int,input().split())
	    a-=1
	    b-=1
	    ki[a].append([b,i])
	    ki[b].append([a,i])


a=[0]*n
for i in range(n):
	    a[i]= len(ki[i])
print(max(a))
clist=[-1]*(n-1)
visited=[[0]for i in range(n)]
def dfs(now,last,ban_color=-1):
	    color =1
	    for next,id in ki[now]:
	    	    
                     
	    	    if next == last:continue
	    	    if color == ban_color:
	    	    	    color+=1
	    	    clist[id] = color
	    	    dfs(next,now,color)
	    	    
	    	    color+=1
	    	    
dfs(0,-1)
for i in range(n-1):
    print(clist[i])


		

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

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


S = input()

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

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

S=input()

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


S = input()

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


S = input()

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


S = input()

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


S = input()

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


S = input()

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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):
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")


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

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

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

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

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

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

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

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

S=input()

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


S=input()

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


S=input()

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

Verdicts: Runtime Error

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):
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('Error'

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

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 = map(int, input().split())
n = 0
i = 1
f = int(1e9)
ans = 0

while f-i > 1:
  n = (i+f)//2
  d = math.trunc(math.log10(n)) + 1
  if a*n + b*d <= x:
    i = n
  else:
    f = n

if a*f + b*d <= x:
  ans = f
elif a*i + b*d <= x:
  ans = i
else:
  ans = 0

print(ans)

s = input()
w = ['SUN','MON','TUE','WED','THU','FRI','SAT']
n = [7,6,5,4,3,2,1]

for i in range(7):
  if s == w[i]:
    print(n[i])

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 = input()
if YOUBI == "MON

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

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

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

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):
import sys
sys.setrecursionlimit(1000000)

N = int(input())
G = [[] for i in range(N)]
for i in range(N-1):
    a,b = map(int,input().split())
    a,b = a-1,b-1
    G[a].append([b, i])

ans = [None]*(N-1)
def rec(cur, color):
    cnt = 1
    for (to, j) in G[cur]:
        if cnt == color:
            cnt += 1
        ans[j] = cnt
        rec(to, cnt)
        cnt += 1

rec(0,0)
print(max(ans))
[print(a) for a in ans]

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):
days = ['SUN','MON','TUE','WED','THU','FRI','SAT'] 
i = str(input())
count = 7
for day in days:
  if i == day:
    print(count)
    break
   else:
    count-=1

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

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

def func(N):
    return (A*N + B*len(str(N)))


def search(start, end):
    median = int((end - start)//2)
    if median == 0:
        if func(end) <= X:
            return end
        elif func(start) <= X:
            return start
        else:
            return 0

    val = func(start+median)
    if val == X:
        return (start+median)
    elif val > X:
        return search(start, start+median)
    elif val < X:
        return search(start+median, end)

result = search(1,10**9)
if result >= 1000000000:
    print(1000000000)
else:
    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: 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())

#Binary Search
high = 10**9 + 1
low  = 0
n = 0
while high - low > 0:
    mid = (high + low)//2
    if a * mid + b * len(str(mid)) <= x:
        low = mid
    else:
        high = mid

print(low)

S = input()

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

if S == A[0]:
    ans = 7
elif S == A[1]:
    ans = 6
elif S == A[2]:
    ans = 5
elif S == A[3]:
    ans = 4
elif S == A[4]:
    ans = 3
elif S == A[5]:
    ans = 2
elif S == A[6]:
    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):
char=input()

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

print(7-week.index())


char=input()

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

print(7-week.index(char))


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())
l = 1
r = 10**9
num = 0
b_num = 0
if 10**9*a + b*9 <= x:
  print(10**9)
elif a+b > x:
  print(0)
else:
  while 1:
    num = (l+r)//2
    if r - l == 1:
      c = [l*a+len(str(l))*b,r*a+len(str(r))*b]
      print(r if c[1]<=x else l)
      break
    cost = a*num+b*len(str(num))
    if cost < x:
      l = num
    else:
      r = num
    b_num = num
  




s = input()
target =  ["MON","TUE","WED","THU","FRI","SAT","SUN"]
print(7 if s=="SUN" else 7-(target.index(s)+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()
x = [ '0', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN' ]
for i in range x:
     if s == x[i]:
          print(i)

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

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

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

a = List.index(S)

if a == 0:
    a = 7

print(a)

S = input()

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

a = List.index(S)

if a == 0:
    a = 7

print(a)

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  = map(int,input().split())

def buy(N):
    if N <= 0:
        return 0
    else:
        s = A*N + B*((math.log10(N)//1)+1)
        return int(s)

n = 10**9
L = 1
H = n
if buy(n) <= X:
    print(n)
elif buy(1) > X:
    print(0)
else:
    while H - L > 1:
        mid = int((L+H)/2)
        if buy(mid) <= X:
            L = mid
        elif buy(mid) > X:
            H = mid
    print(L)

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



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=str(input())
if s=="SAT":
    print("1\ntoday is",s,"tomorrow is sunday")
elif s=="MON":
    print("7\ntoday is",s,"after 7 days is sunday")
elif s=="TUE":
    print("6\ntoday is",s,"after 6 days is sunday")
elif s=="WED":
    print("5\ntoday is",s,"after 5 days is sunday")
elif s=="THU":
    print("4\ntoday is",s,"after 4 days is sunday")
elif s=="FRI":
    print("3\ntoday is",s,"after 3 days is sunday")
elif s=="SUN":
    print("7\ntoday is",s,"after 7 days is sunday")

s= input ("please enter the day")
if s == "SAT" :
    print ("1 \n It is Saturday today, and tomorrow will be Sunday")
elif s == "SUN" :
    print ("7 \n It is Sunday today, and seven days later, it will be Sunday again.")
elif s == "MON" :
    print (" 6 \n It is monday today, and six days later, it will be Sunday again.")
elif s == "TUE" :
    print (" 5 \n It is thusday today, and five days later, it will be Sunday again.")
elif s =="WED" :
    print (" 4 \n It is wednsday today, and four days later, it will be Sunday again.")
elif s == "THU" :
    print ("3 \n It is thusday today, and three days later, it will be Sunday again.")
else:
    print ("2 \n It is friday today, and two days later, it will be Sunday again.")

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

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

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

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

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

import sys
sys.setrecursionlimit(10**7)

n = int(input())

graph = [[] for i in range(N)]
for i in range(N-1):
    a,b = map(int,input().split())
    graph[a].append([b,i])

ans = [0]*(N-1)
def col(now,color):
    c = 1
    for (b,j) in graph[now]:
        if c == color:
            c += 1
    ans[j] = c
    col(b,c)
    c += 1

col(0,0)
print(max(ans))
[print(a) for a in ans]


s = str(input())

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

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

li = ['SAT','FRI','THU','WED','TUE','MON','SUN']
x = input()
print(li.index(x)+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):
iro = []
iro_i = []
res = []
r = 1
cm = []

N = int(input())
for i in range(N+1):
  cm.append([])
for i in range(N-1):
  a,b = input().split(" ")
  a = int(a)
  b = int(b)
  cr = set(iro_i) - set(cm[a] + cm[b])
  
  if len(cr):
    cr = list(cr)[0]
    res.append(cr)
    cm[a].append(cr)
    cm[b].append(cr)
  else:
    iro_i.append(r)
    cm[a].append(r)
    cm[b].append(r)
    res.append(r)
    r+=1

print(r-1)
for i in res:
  print(i)




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


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

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

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

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


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):
inputStr = input().split()
intA = int(inputStr[0])
intB = int(inputStr[1])
intX = int(inputStr[2])

intN = 0
sum = 0

while(sum < intX):
  sum = intA * intN + intB * len(str(intN))
  intN+=1

print(intN - 2)

str = input()
if str == 'SUN':
  print(7)
elif str == 'MON':
  print(6)
elif str == 'TUE':
  print(5)
elif str == 'WED':
  print(4)
elif str == 'THU':
  print(3)
elif str == 'FRI' :
  print(2)
elif str == '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()
a=["SUN","MON","TUE","WED","THU","FRI","SAT"]
print(7-a.index(a))


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


Verdicts: Runtime Error

Accepted