ZhenlongDai/ACPR huggingface dataset:
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
l = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(7):
    if s == 'SUN':
        print(7)
    else:
        if s == l[i]:
            print(7-i)

Failing test case input:
SUN

Expected output:
7

Actual output:
7
7
7
7
7
7
7


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = ["STA","FRI","THU","WED","TUE","MON","SUN"]
T = input()
count=1
for i in S:
    if i == T:
        print(count)
    count+=1

Failing test case input:
SAT

Expected output:
1

Actual output:

Fixed submission (verdict: Accepted):
S = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
T = input()
count=1
for i in S:
    if i == T:
        print(count)
    count+=1

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
dic = {
        "SUN":0,
        "MON":6,
        "TUE":5,
        "WED":4,
        "THU":3,
        "FRI":2,
        "SAT":1,
        }

week = input()
print(dic[week])


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
dic = {
        "SUN":7,
        "MON":6,
        "TUE":5,
        "WED":4,
        "THU":3,
        "FRI":2,
        "SAT":1,
        }

week = input()
print(dic[week])

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
s = input()
result = abs(S.index(s)-S.index("SUN"))
print(result)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
s = input()
result = abs(S.index(s)-S.index("SUN"))
if result ==0:
  result = 7
else:
  pass
print(result)

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = input()

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

elif S =="MON":
    print("TUE")
    
elif S =="TUE":
    print("WED")

elif S =="WED":
    print("THU")
    
elif S =="THU":
    print("FRI")
    
elif S =="FRI":
    print("SAT")

else:
    print("SUN")

Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
dist = {"MON":0,"TUE":1,"WED":2,"THU":3,"FRI":4,"SAT":5,"FRI":6,"SUN":7}
i = str(input())
print(dist[i]-dist["SUN"])


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
dist = {"MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6,"SUN":7}
i = str(input())
if i == "SUN":
  print(7)
else:
  print(dist["SUN"]-dist[i])
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input().split()
a=['SUN','MON','TUE','WED','THU','FRI','SAT']

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

Failing test case input:
SUN

Expected output:
7

Actual output:

Fixed submission (verdict: Accepted):
s=input()
a=['','SAT','FRI','THU','WED','TUE','MON','SUN']

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

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = input()
arr =['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(arr[arr.index(S)])

Failing test case input:
SAT

Expected output:
1

Actual output:
SAT


Fixed submission (verdict: Accepted):
S = input()
arr =['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7-arr.index(S))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


S = input()

ans = 0

if S == "SUN":
    ans = 6
if S == "MON":
    ans = 5
if S == "TUE":
    ans = 4
if S == "WED":
    ans = 3
if S == "FRI":
    ans = 2
if S == "SAT":
    ans = 1


print(ans)


Failing test case input:
SUN

Expected output:
7

Actual output:
6


Fixed submission (verdict: Accepted):


S = input()

ans = 0

if S == "SUN":
    ans = 7
if S == "MON":
    ans = 6
if S == "TUE":
    ans = 5
if S == "WED":
    ans = 4
if S == "THU":
    ans = 3

if S == "FRI":
    ans = 2
if S == "SAT":
    ans = 1


print(ans)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if s[0]=="S" or s[0]=="T":
  if s[1]=="U":
    print('3')
  elif s[1]=='E':
    print('4')
  elif s[2]=='T':
    print('1')
  else:
    print('7')
else:
  if s[1]=='R':
    print('2')
  elif s[1]=='O':
    print('6')
  else:
    print('5')

Failing test case input:
SUN

Expected output:
7

Actual output:
3


Fixed submission (verdict: Accepted):
s=input()
if s[0]=="S" or s[0]=="T":
  if s[2]=="E":
    print('5')
  elif s[2]=='U':
    print('3')
  elif s[2]=='T':
    print('1')
  else:
    print('7')
else:
  if s[1]=='R':
    print('2')
  elif s[1]=='O':
    print('6')
  else:
    print('4')

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input('S')
print()

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

Failing test case input:
SAT

Expected output:
1

Actual output:
S
1


Fixed submission (verdict: Accepted):
s = input()

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

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
week = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
for i in range(7):
    if s == week[i]:
        print(6-i)


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
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")
Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
if S=="SUN":
    print("MON")
elif S=="MON":
    print("TUE")
elif S=="TUE":
    print("WED")
elif S=="WED":
    print("THU")
elif S=="THU":
    print("FRI")
elif S=="FRI":
    print("SAT")
elif S=="SAT":
    print("SUN")

Failing test case input:
SAT

Expected output:
1

Actual output:
SUN


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
day=input()
week=['SUN','MON','TUE','WED','THU','FRI','SAT']
num=7-week.index(day)
if num==7:
    num=0
print(num)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
day=input()
week=['SUN','MON','TUE','WED','THU','FRI','SAT']
num=7-week.index(day)

print(num)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=[['SUM',7],['MON',6],['TUE',5],['WED',4],['THU',3],['FRY',2],['SAT',1]]
s=str(input())
for i in range(7):
  if s==l[i][0]:
    print(l[i][1])

Failing test case input:
SUN

Expected output:
7

Actual output:

Fixed submission (verdict: Accepted):
l=[['SUN',7],['MON',6],['TUE',5],['WED',4],['THU',3],['FRI',2],['SAT',1]]
s=str(input())
for i in range(7):
  if s==l[i][0]:
    print(l[i][1])

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)



Failing test case input:
SAT

Expected output:
1

Actual output:
Day of the week
1


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
x = [ '0', 'SAT', 'SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI']
for i in range(len(x)):
     if s == x[i]:
          print(i)

Failing test case input:
SUN

Expected output:
7

Actual output:
2


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=["MON","TUE","WED","THU","FRI","SAT","SUN"]
print(l.index(input())+1)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
l=["SAT","FRI","THU","WED","TUE","MON","SUN"]
print(l.index(input())+1)
Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


S = input()

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

print(ANSWER)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = str(input())
apple = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
print(apple[apple.index(s) + 1])

Failing test case input:
SUN

Expected output:
7

Actual output:
MON


Fixed submission (verdict: Accepted):
s = str(input())
apple = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
print(7-apple.index(s))

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = input()
ans = 0
if S == 'SUN':
  ans = 7
elif S == 'SUT':
  ans = 1
elif S == 'FRI':
  ans = 2
elif S == 'THU':
  ans = 3
elif S == 'WED':
  ans = 4
elif S == 'TUE':
  ans = 5
else:
  ans = 6
print(ans)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
S = input()
ans = 0
if S == 'SUN':
  ans = 7
elif S == 'SAT':
  ans = 1
elif S == 'FRI':
  ans = 2
elif S == 'THU':
  ans = 3
elif S == 'WED':
  ans = 4
elif S == 'TUE':
  ans = 5
else:
  ans = 6
print(ans)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = str(input())

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

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
S = str(input())

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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
DAYS = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(DAYS[(DAYS.index(input())+1)%7])

Failing test case input:
SUN

Expected output:
7

Actual output:
MON


Fixed submission (verdict: Accepted):
DAYS = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print( 7- DAYS.index(input()) )

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
youbi=['MON','TUE','WED','THU','FRI','SAT','SUN']
s=input()
for i in range(len(youbi)):
  if s=='SUN':
    print(7)
    
  elif youbi[i]==s:
    print(6-i)

Failing test case input:
SUN

Expected output:
7

Actual output:
7
7
7
7
7
7
7


Fixed submission (verdict: Accepted):
youbi=['MON','TUE','WED','THU','FRI','SAT','SUN']
s=input()
for i in range(len(youbi)):
  if s=='SUN':
    print(7)
    exit()
    
  elif youbi[i]==s:
    print(6-i)
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = str(input())
a = 0
if S == "SUN":
  a = 7
elif S == "MON":
  a = 6
elif S == "TUE":
  a = 5
elif S == "WED":
  a = 4
elif S == "THU":
  a = 3
elif S == "FRI":
  a = 2
elif S == "SUT":
  a = 1
print(a)

Failing test case input:
SAT

Expected output:
1

Actual output:
0


Fixed submission (verdict: Accepted):
S = str(input())
a = 0
if S == "SUN":
  a = 7
elif S == "MON":
  a = 6
elif S == "TUE":
  a = 5
elif S == "WED":
  a = 4
elif S == "THU":
  a = 3
elif S == "FRI":
  a = 2
elif S == "SAT":
  a = 1
print(a)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
w = {'SUN':7,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
print(7-w[s])

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
s = input()
w = {'SUN':0,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
print(7-w[s])

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)


Failing test case input:
SAT

Expected output:
1

Actual output:
Day of the week
1


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = input()

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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if s=="SUN":
    print(7)
if s=="MON":
    print(6)
if s=="TUE":
    print(5)
if s=="WED":
    print(4)
if s=="THU":
    print(3)
if s=="FRI":
    print(2)
else:
    print(1)

Failing test case input:
SUN

Expected output:
7

Actual output:
7
1


Fixed submission (verdict: Accepted):
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)
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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])

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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])

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
day = input()

if day == "SUN":
    print(0)
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)
else:
    print(1)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
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)
else:
    print(1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")


Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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")

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s == 'SUN':
  s = 0
elif s == 'MON':
  s = 6
elif s == 'TUE':
  s = 5
elif s == 'WED':
  s = 4
elif s =='THU':
  s = 3
elif s == 'FRI':
  s = 2
elif s == 'SAT':
  s = 1
print(s)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
s = input()
if s == 'SUN':
  s = 7
elif s == 'MON':
  s = 6
elif s == 'TUE':
  s = 5
elif s == 'WED':
  s = 4
elif s =='THU':
  s = 3
elif s == 'FRI':
  s = 2
elif s == 'SAT':
  s = 1
print(s)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()

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


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S=input()

if S == "SUN":
    print("7")
elif S == "SAT":
    print("1")
elif S == "MON":
    print("6")
elif S == "TUE":
    print("5")
elif S == "WED":
    print("4")
elif S == "THU":
    print("3")
elif S == "FRI":
    print("2")
Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
from sys import stdin

S = stdin.readline().rstrip()
days  = ["MON","TUE","WED","THU","FRI","SAT","SUN"]

if S == "SUN":
    print(6)
else:
    i = days.index(S)
    print(6 - i)



Failing test case input:
SUN

Expected output:
7

Actual output:
6


Fixed submission (verdict: Accepted):
from sys import stdin

S = stdin.readline().rstrip()
days  = ["MON","TUE","WED","THU","FRI","SAT","SUN"]

if S == "SUN":
    print(7)
else:
    i = days.index(S)
    print(6 - i)

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S=input()
if S is 'SUN':
    print(7)
elif S is 'MON':
    print(6)
elif S is 'TUE':
    print(5)
elif S is 'WED':
    print(4)
elif S is 'THU':
    print(3)
elif S is 'FRI':
    print(2)
elif S is 'SAT':
    print(1)

Failing test case input:
SUN

Expected output:
7

Actual output:

Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
ls = {"MON": 0, "TUE": 1, "WED": 3, "THU": 4, "FRI": 5, "SAT": 6, "SUN": 7}
print(7-ls[s])


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
s = input()
ls = {"MON": 0, "TUE": 1, "WED": 2, "THU": 3, "FRI": 4, "SAT": 5, "SUN": -1}
print(6-ls[s])

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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)



Failing test case input:
SUN

Expected output:
7

Actual output:
1


Fixed submission (verdict: Accepted):

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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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 == 'SUT':
    print(1)

Failing test case input:
SAT

Expected output:
1

Actual output:

Fixed submission (verdict: Accepted):
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)
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
days = days[::-1]
ix = days.index(S)
print((ix + 1) % 7)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
S = input()
days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
days = days[::-1]
ix = days.index(S)
print((ix + 1))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
day=['SUN','MON','TUE','WED','THU','FRI','SAT'] 
print(day.index(s)+2)

Failing test case input:
SAT

Expected output:
1

Actual output:
8


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
day=['SUN','MON','TUE','WED','THU','FRI','SAT'] 
print(day.index(s)+1)

Failing test case input:
SAT

Expected output:
1

Actual output:
7


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s == 'SUN':
    print(1)
elif s == 'MON':
    print(6)
elif s == 'TUE':
    print(5)
elif s == 'WED':
    print(4)
elif s == 'THU':
    print(3)
elif s == 'FRI':
    print(2)
else:
    print(1)

Failing test case input:
SUN

Expected output:
7

Actual output:
1


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
days = [' ', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
s = input()
if s == 'SUM':
    print(7)
    exit()
print(7-days.index(s))


Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
days = [' ', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
s = input()
if s == 'SUN':
    print(7)
    exit()
print(7-days.index(s))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
a = ["SUN","MON","TUE","WED","THE","FRI","SAT"]

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

Failing test case input:
SAT

Expected output:
1

Actual output:
7


Fixed submission (verdict: Accepted):
s = input('')
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']

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

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
ls=[0,'MON','TUE','WED','THU','FRI','SAT','SUN']
x=input()
for i in range(8):
  if x==ls[i]:
    print(i)
    break

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
ls=['SUN','MON','TUE','WED','THU','FRI','SAT']
x=input()
for i in range(7):
  if x==ls[i]:
    print(7-i)
    break
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
week = {"SUN":7,"MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6}
print(week[input()])

Failing test case input:
SAT

Expected output:
1

Actual output:
6


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

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
a=str(input())
if a=="SUN":
    print(0)
elif a=="MON":
    print(6)     
elif a=="TUE":
    print(5)
elif a=="WED":
    print(4)
elif a=="THU":
    print(3)
elif a=="FRI":
    print(2)
else :
    print(1)

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
import sys
a=str(input())
if a=="SUN":
    print(7)
elif a=="MON":
    print(6)     
elif a=="TUE":
    print(5)
elif a=="WED":
    print(4)
elif a=="THU":
    print(3)
elif a=="FRI":
    print(2)
else :
    print(1)

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
from collections import defaultdict
from copy import deepcopy
input = sys.stdin.readline

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

Failing test case input:
SUN

Expected output:
7

Actual output:
1


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
days = ['0', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
d = input()
print(days.index(d))


Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
days = ["SUN", 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
days.reverse()
d = input()
print(days.index(d)+1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

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


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

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
s = input()
 
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']
 
 
if s == 'SUN':
  print(7)
  exit()
else:
  print(7 - a.index(s))

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
day=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(7):
  if s==day[i]:
    if i==0:
      print(7)
    else:
      print(i)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
s=input()
day=["SUN","MON","TUE","WED","THU","FRI","SAT"]
for i in range(7):
  if s==day[i]:
    print(7-i)
Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")


Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
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)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input('enter')
day ={
'SUN':7,
'MON':6,
'TUE':5,
'WED':4,
'THU':3,
'FRI':2,
'SAT':1,
}

print(day[S])


Failing test case input:
SUN

Expected output:
7

Actual output:
enter7


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

print(day[S])

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
n=['SUN','MON','TUE','WED','THU','FRI','SAT']
if a!='SAT':
  print(7-n.index(a))
else:
  print(7)

Failing test case input:
SAT

Expected output:
1

Actual output:
7


Fixed submission (verdict: Accepted):
a=input()
n=['SUN','MON','TUE','WED','THU','FRI','SAT']
if a!='SAT':
  print(7-n.index(a))
else:
  print(1)

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
day = input()
if day == "SUN":
    i = 7
if day == "MON":
    i = 6
elif day == "TUE":
    i = 5
elif day == "WED":
    i = 4
elif day == "THU":
    i = 3
elif day == "FRI":
    i = 2
else:
    i = 1
print(i)

Failing test case input:
SUN

Expected output:
7

Actual output:
1


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

Problem: p02847
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

a = List.index(S)

if a == 0:
    a = 7

print(a)

Failing test case input:
SAT

Expected output:
1

Actual output:
6


Fixed submission (verdict: Accepted):
S = input()

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

a = List.index(S)

if a == 0:
    a = 7

print(a)

Problem: p02847
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
days_next_sunday = {
   'SUN': 0,
   'MON': 6,
   'TUE': 5,
   'WED': 4,
   'THU': 3,
   'FRI': 2,
   'SAT': 1
}
print(days_next_sunday[input()])

Failing test case input:
SUN

Expected output:
7

Actual output:
0


Fixed submission (verdict: Accepted):
days_next_sunday = {
   'SUN': 7,
   'MON': 6,
   'TUE': 5,
   'WED': 4,
   'THU': 3,
   'FRI': 2,
   'SAT': 1
}
print(days_next_sunday[input()])
Problem: p02709
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = [(_a, i) for i, _a in enumerate(map(int, input().split()))]
a.sort(reverse=True)

dp = [[0]*(n+1) for _ in range(n+1)]
for i, (v, p) in enumerate(a):
    dp[i+1][0] = dp[i][0] + v*abs(0 - p)
    for j in range(1, i+1):
        dp[i+1][j] = max(dp[i][j] + v*abs(i - p),
                         dp[i][j-1] + v*abs((n-1 - (j-1)) - p))
    dp[i+1][i+1] = dp[i][i] + v*abs((n-1 - i) - p)
print(max(dp[n]))


Failing test case input:
6
34 1 4 0 1 0

Expected output:
184


Actual output:
182


Fixed submission (verdict: Accepted):
n = int(input())
a = [(_a, i) for i, _a in enumerate(map(int, input().split()))]
a.sort(reverse=True)

dp = [[0]*(n+1) for _ in range(n+1)]
for i, (v, p) in enumerate(a):
    
    dp[i+1][0] = dp[i][0] + v*abs((n-1 - i) - p)
    for j in range(1, i+1):
        dp[i+1][j] = max(dp[i][j] + v*abs((n-1 - (i-j)) - p),
                         dp[i][j-1] + v*abs((j-1) - p))
    dp[i+1][i+1] = dp[i][i] + v*abs(i - p)
print(max(dp[n]))

Problem: p02709
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def sep():
    return map(int,input().strip().split(" "))
def lis():
    return list(sep())

n=int(input())
ar=lis()
data=[]
for i in range(n):
    data.append((ar[i],i))
data.sort(reverse=True)
dp = [[0] * (n+1) for _ in range(n+1)]

for i in range(n):
    a, p = data[i]
    for j in range(i+1):
        dp[i+1][j+1] = max(dp[i+1][j+1],dp[i][j] + abs(n-1-j-p)*a)
        dp[i+1][j] = max(dp[i+1][j], dp[i][j] + abs(i-j-p)*a)
print(dp)
print(max(dp[-1]))








Failing test case input:
6
5 5 9 0 2 1

Expected output:
69


Actual output:
[[0, 0, 0, 0, 0, 0, 0], [18, 27, 0, 0, 0, 0, 0], [18, 38, 42, 0, 0, 0, 0], [28, 43, 58, 57, 0, 0, 0], [30, 47, 64, 65, 61, 0, 0], [31, 49, 67, 69, 68, 65, 0], [31, 49, 67, 69, 69, 68, 65]]
69


Fixed submission (verdict: Accepted):
def sep():
    return map(int,input().strip().split(" "))
def lis():
    return list(sep())

n=int(input())
ar=lis()
data=[]
for i in range(n):
    data.append((ar[i],i))
data.sort(reverse=True)
dp = [[0] * (n+1) for _ in range(n+1)]

for i in range(n):
    a, p = data[i]
    for j in range(i+1):
        dp[i+1][j+1] = max(dp[i+1][j+1],dp[i][j] + abs(n-1-j-p)*a)
        dp[i+1][j] = max(dp[i+1][j], dp[i][j] + abs(i-j-p)*a)

print(max(dp[-1]))
Problem: p02709
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
A = list(map(int, input().split()))
a = []
for i in range(len(A)):
    a.append([A[i], i])
a.sort(key = lambda x: x[0], reverse = True)
dp = [[0 for i in range(n+1)] for j in range(n+1)]
for i in range(n):
    for l in range(i+1):
        dp[i+1][l] = max(dp[i+1][l], dp[i][l] + a[i][0]*(n-1-(i-l)-a[i][1]))
        dp[i+1][l+1] = max(dp[i+1][l+1], dp[i][l] + a[i][0] * (a[i][1] - l))
ans = 0
print(dp)
for now in dp[n]:
    ans = max(now, ans)
print(ans)




Failing test case input:
6
25 0 2 0 2 3

Expected output:
150


Actual output:
[[0, 0, 0, 0, 0, 0, 0], [125, 0, 0, 0, 0, 0, 0], [122, 140, 12, 0, 0, 0, 0], [124, 144, 142, 12, 0, 0, 0], [120, 142, 150, 146, 14, 0, 0], [120, 142, 150, 150, 146, 14, 0], [120, 142, 150, 150, 150, 146, 14]]
150


Fixed submission (verdict: Accepted):
n = int(input())
A = list(map(int, input().split()))
a = []
for i in range(len(A)):
    a.append([A[i], i])
a.sort(key = lambda x: x[0], reverse = True)
dp = [[0 for i in range(n+1)] for j in range(n+1)]
for i in range(n):
    for l in range(i+1):
        dp[i+1][l] = max(dp[i+1][l], dp[i][l] + a[i][0]*(n-1-(i-l)-a[i][1]))
        dp[i+1][l+1] = max(dp[i+1][l+1], dp[i][l] + a[i][0] * (a[i][1] - l))
ans = 0
for now in dp[n]:
    ans = max(now, ans)
print(ans)

Problem: p02709
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n=int(input())
a=list(map(int,input().split()))
cost=[]
for i,g in enumerate(a):
    cost.append([g,i])
cost.sort(reverse=True)


dp=[[0] *(n) for _ in range(n) ]

for i in range(n-1):
    for j in range(i+1):
        dp[i+1][j+1]=max(dp[i+1][j+1],dp[i][j]+cost[i][0]*(cost[i][1]-j))
        dp[i+1][j]=max(dp[i+1][j],dp[i][j]+cost[i][0]*(n-1-(i-j)-cost[i][1]))

print(max(dp[-1]))

Failing test case input:
6
8 6 22 1 1 1

Expected output:
119


Actual output:
118


Fixed submission (verdict: Accepted):
n=int(input())
a=list(map(int,input().split()))
cost=[]
for i,g in enumerate(a):
    cost.append([g,i])
cost.sort(reverse=True)

dp=[[0] *(n+1) for _ in range(n+1) ]

for i in range(n):
    for j in range(i+1):
        dp[i+1][j+1]=max(dp[i+1][j+1],dp[i][j]+cost[i][0]*abs(cost[i][1]-j))
        dp[i+1][j]=max(dp[i+1][j],dp[i][j]+cost[i][0]*abs((n-1-(i-j))-cost[i][1]))

print(max(dp[-1]))
Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(s[:len(s)-4])

Failing test case input:
BICTEWSTWFALFETEOICM

Expected output:
BICTEWSTWFAL


Actual output:
BICTEWSTWFALFETE


Fixed submission (verdict: Accepted):
s = input()
print(s[:len(s)-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(s[:-9])


Failing test case input:
COCTIWSTFWALFESEIEAL

Expected output:
COCTIWSTFWAL


Actual output:
COCTIWSTFWA


Fixed submission (verdict: Accepted):
s = input()
print(s[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(s[:-7])

Failing test case input:
LIVKOXET@HC@GZSI

Expected output:
LIVKOXET


Actual output:
LIVKOXET@


Fixed submission (verdict: Accepted):
s = input()
print(s[:-8])

Problem: p03577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print(input()[:-9])

Failing test case input:
MCIIETEFLAFWTSWETCOB

Expected output:
MCIIETEFLAFW


Actual output:
MCIIETEFLAF


Fixed submission (verdict: Accepted):
print(input()[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(s[:len(s)-7])

Failing test case input:
LAVITSJCUEYNIKAI

Expected output:
LAVITSJC


Actual output:
LAVITSJCU


Fixed submission (verdict: Accepted):
s = input()
print(s[:len(s)-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=input()

y='FESTIVAL'

print(x.replace(y,''))



Failing test case input:
MI@KOYET@HBVGZSI

Expected output:
MI@KOYET


Actual output:
MI@KOYET@HBVGZSI


Fixed submission (verdict: Accepted):
x=input()

y='FESTIVAL'

print(x[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

x=input()

y='FESTIVAL'

print(x.rstrip(y))



Failing test case input:
COCEFWSTIWALFESTIEAL

Expected output:
COCEFWSTIWAL


Actual output:
COCEFWSTIW


Fixed submission (verdict: Accepted):
x=input()

y='FESTIVAL'

print(x[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s= input()
print(s[:-6])

Failing test case input:
LCEIESEFLAFWTSWITCOA

Expected output:
LCEIESEFLAFW


Actual output:
LCEIESEFLAFWTS


Fixed submission (verdict: Accepted):
s= input()
print(s[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
print(S[0:len(S)-7])

Failing test case input:
FECOEUNFL@FWTCWCTHIS

Expected output:
FECOEUNFL@FW


Actual output:
FECOEUNFL@FWT


Fixed submission (verdict: Accepted):
S = input()
print(S[0:len(S)-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

s = stdin.readline().rstrip()

print(s[:-9])

Failing test case input:
ECDVDUWEM@FOTCOCTIHS

Expected output:
ECDVDUWEM@FO


Actual output:
ECDVDUWEM@F


Fixed submission (verdict: Accepted):
from sys import stdin

s = stdin.readline().rstrip()

print(s[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s= input()
print(s[:-7])

Failing test case input:
LAWHUCJSUEYNAKII

Expected output:
LAWHUCJS


Actual output:
LAWHUCJSU


Fixed submission (verdict: Accepted):
s= input()
print(s[:-8])
Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(s[:len(s)-6])

Failing test case input:
IIKANYEUCJSTIVAL

Expected output:
IIKANYEU


Actual output:
IIKANYEUCJ


Fixed submission (verdict: Accepted):
s = input()
print(s[:len(s)-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(input()[:-9])

Failing test case input:
I@WHVCISUEYNAKIL

Expected output:
I@WHVCIS


Actual output:
I@WHVCI


Fixed submission (verdict: Accepted):
print(input()[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(s[:-9])

Failing test case input:
LAVITSEFUJINIKAY

Expected output:
LAVITSEF


Actual output:
LAVITSE


Fixed submission (verdict: Accepted):
s = input()
print(s[:-8])

Problem: p03577
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = input()
s = s[:-8]
s

Failing test case input:
FNCOETEFL@FWTCWCTHIS

Expected output:
FNCOETEFL@FW


Actual output:

Fixed submission (verdict: Accepted):
s = input()
s = s[:-8]
print(s)

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input().rstrip()
print(s[:-9])

Failing test case input:
YAKINIKUFESTIVAL

Expected output:
YAKINIKU

Actual output:
YAKINIK


Fixed submission (verdict: Accepted):
s = input()
print(s[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(input()[-8:])

Failing test case input:
WQCEFDSTJCAO

Expected output:
WQCE


Actual output:
FDSTJCAO


Fixed submission (verdict: Accepted):
print(input()[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(s[:len(s)-4])


Failing test case input:
LAVITSEEUJINIKAY

Expected output:
LAVITSEE


Actual output:
LAVITSEEUJIN


Fixed submission (verdict: Accepted):
s = input()
print(s[:len(s)-8])

Problem: p03577
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
print(input()[-8])

Failing test case input:
IIKANYEUCJSTIVAL

Expected output:
IIKANYEU


Actual output:
C


Fixed submission (verdict: Accepted):
print(input()[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=input()

y='FESTIVAL'

print(x.rstrip(y))





Failing test case input:
MH@KNYETSHCVGY@I

Expected output:
MH@KNYET


Actual output:
MH@KNYETSHCVGY@


Fixed submission (verdict: Accepted):
x=input()

y='FESTIVAL'

print(x[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(input()[:8])

Failing test case input:
SBJENDSXFDAO

Expected output:
SBJE


Actual output:
SBJENDSX


Fixed submission (verdict: Accepted):
print(input()[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=input()

y='FESTIVAL'

print(x.replace(y,''))


Failing test case input:
SIHTCWCTWF@LFETEOCNE

Expected output:
SIHTCWCTWF@L


Actual output:
SIHTCWCTWF@LFETEOCNE


Fixed submission (verdict: Accepted):
x=input()

y='FESTIVAL'

print(x[:-8])
Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    s = input()
    s = s.replace("FESTIVAL", "")
    print(s)

if __name__ == "__main__":
    main()

Failing test case input:
SHITCOCTOF@LEWUEVCDE

Expected output:
SHITCOCTOF@L


Actual output:
SHITCOCTOF@LEWUEVCDE


Fixed submission (verdict: Accepted):
def main():
    s = input()
    print(s[0:-8])

if __name__ == "__main__":
    main()

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
print(s[:-9])

Failing test case input:
LIKANYEUSICVHWAI

Expected output:
LIKANYEU


Actual output:
LIKANYE


Fixed submission (verdict: Accepted):
s=input()
print(s[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
print(s[:-7])


Failing test case input:
XFDEOCSSJDAO

Expected output:
XFDE


Actual output:
XFDEO


Fixed submission (verdict: Accepted):
s=input()
print(s[:-8])

Problem: p03577
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(input()[len('FESTIVAL'):])

Failing test case input:
CODEFESTIWALFESTIWAL

Expected output:
CODEFESTIWAL


Actual output:
IWALFESTIWAL


Fixed submission (verdict: Accepted):
print(input()[:-len('FESTIVAL')])
Problem: p03327
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
if N>=1000:
    print('ABD')
else:
    print('ABD')

Failing test case input:
127

Expected output:
ABC


Actual output:
ABD


Fixed submission (verdict: Accepted):
N=int(input())
if N>=1000:
    print('ABD')
else:
    print('ABC')

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

if N < 100: print("ABC")
else: print("ABD")

Failing test case input:
411

Expected output:
ABC


Actual output:
ABD


Fixed submission (verdict: Accepted):
N = int(input())

if N < 1000: print("ABC")
else: print("ABD")

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n < 1000:
  print('ABD')
else:
  print('ABC')

Failing test case input:
793

Expected output:
ABC


Actual output:
ABD


Fixed submission (verdict: Accepted):
n = int(input())
if n < 1000:
  print('ABC')
else:
  print('ABD')

Problem: p03327
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
if int(input()) >= 1000:
  print("ABC")
else:
  print("ABC")

Failing test case input:
1110

Expected output:
ABD


Actual output:
ABC


Fixed submission (verdict: Accepted):
if int(input()) >= 1000:
  print("ABD")
else:
  print("ABC")

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N >= 1000:
  N += 1
  print('ABD' + str(N)[1:])
else:
  print('ABC' + str(N))


Failing test case input:
1711

Expected output:
ABD


Actual output:
ABD712


Fixed submission (verdict: Accepted):
N = int(input())
if N >= 1000:
    N += 1
    print('ABD')
else:
    print('ABC')

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("ABC" if int(input())<999 else "ABD")

Failing test case input:
999

Expected output:
ABC

Actual output:
ABD


Fixed submission (verdict: Accepted):
print("ABC" if int(input())<1000 else "ABD")

Problem: p03327
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
if n < 1000:
	print("ABC",n)
else:
	print("ABD",n-999)

Failing test case input:
1100

Expected output:
ABD


Actual output:
ABD 101


Fixed submission (verdict: Accepted):
n = int(input())
if n < 1000:
	print("ABC")
else:
	print("ABD")

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=int(input())

if x <= 999:
	print("ABC")
else:
	print("ADB")	


Failing test case input:
1010

Expected output:
ABD


Actual output:
ADB


Fixed submission (verdict: Accepted):
x=int(input())

if x <= 999:
	print("ABC")
else:
	print("ABD")

Problem: p03327
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=int(input())
if s<1000:
    print('ABC'+str(s))
else:
    print('ABD'+str(s-999))

Failing test case input:
127

Expected output:
ABC


Actual output:
ABC127


Fixed submission (verdict: Accepted):
s=int(input())
if s<=999:
    print('ABC')
else:
    print('ABD')
Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
ans = 'AB'
if n <= 999:
  ans += 'C'
else:
  ans += 'D'
  n -= 999
print(ans+'{:03}'.format(n))



Failing test case input:
1110

Expected output:
ABD


Actual output:
ABD111


Fixed submission (verdict: Accepted):
n = int(input())
ans = 'AB'
if n <= 999:
  ans += 'C'
else:
  ans += 'D'
print(ans)

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
print("ABC" if n<999 else "ABD")

Failing test case input:
999

Expected output:
ABC

Actual output:
ABD


Fixed submission (verdict: Accepted):
n=int(input())
print("ABC" if n<1000 else "ABD")

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N < 1000:
    print('ABC'+str(N))
else:
    print('ABD'+str(N+1)[1:])

Failing test case input:
2152

Expected output:
ABD


Actual output:
ABD153


Fixed submission (verdict: Accepted):
N = int(input())
if N < 1000:
    print('ABC')
else:
    print('ABD')

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N >= 1000:
  print("ABD"+str(N%1000))
else:
  print("ABC"+str(N))

Failing test case input:
1101

Expected output:
ABD


Actual output:
ABD101


Fixed submission (verdict: Accepted):
N = int(input())
if N >= 1000:
  print("ABD")
else:
  print("ABC")

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=int(input())
if A > 999:
  print("ABD" + str(A))
else :
  print("ABC" + str(A))




Failing test case input:
0001

Expected output:
ABC


Actual output:
ABC1


Fixed submission (verdict: Accepted):
A=int(input())
if A > 999:
  print("ABD" )
else :
  print("ABC")

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=int(input())
if A > 999:
  print("ABC" + str(A))
else :
  print("ABD" + str(A))




Failing test case input:
-23

Expected output:
ABC


Actual output:
ABD-23


Fixed submission (verdict: Accepted):
A=int(input())
if A > 999:
  print("ABD" )
else :
  print("ABC")

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

if N <= 999:
  print('ABC{}'.format(N))
else:
  print('ABD{}'.format(N-999))

Failing test case input:
1111

Expected output:
ABD


Actual output:
ABD112


Fixed submission (verdict: Accepted):
N = int(input())

if N <= 999:
  print('ABC')
else:
  print('ABD')

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

if N >= 1000:
  print("ABD"+str(N-1000))
else:
  print("ABC"+str(N))

Failing test case input:
1011

Expected output:
ABD


Actual output:
ABD11


Fixed submission (verdict: Accepted):
N = int(input())
 
if N >= 1000:
  print("ABD")
else:
  print("ABC")

Problem: p03327
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print ('AB'+'C' if int (input ())<1000 else 'D')

Failing test case input:
1010

Expected output:
ABD


Actual output:
D


Fixed submission (verdict: Accepted):
print ('AB'+('C' if int (input ())<1000 else 'D'))