ZhenlongDai/ACPR huggingface dataset:
Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
input = input().split()
r = int(input[0])
g = int(input[1])
b = int(input[2])
N = int(input[3])

count = 0

for x in range(math.ceil(N/r)+1):
    for y in range(math.ceil((N-x*r)/g)+1):
        if  (N - x*r - y*g)%b == 0:
            count +=1

print(count)


Failing test case input:
1 4 3 452

Expected output:
8664


Actual output:
8777


Fixed submission (verdict: Accepted):
import math
input = input().split()
r = int(input[0])
g = int(input[1])
b = int(input[2])
N = int(input[3])

count = 0


for x in range(math.ceil(N/r+0.0001)):
    for y in range(math.ceil((N-x*r)/g + 0.0001)):
        
        if  (N - x*r - y*g) % b == 0:
            count +=1

print(count)

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

def main():
    buf = input()
    buflist = buf.split()
    R = int(buflist[0])
    G = int(buflist[1])
    B = int(buflist[2])
    N = int(buflist[3])
    combination = 0
    for i in range(3000):
        if i * R > N:
            break
        for j in range(3000):
            if i * R + j * G > N:
                break
            if (N - (i * R + j * G)) % B == 0:
                combination += 1
    print(combination)


if __name__ == '__main__':
    main()


Failing test case input:
13 1 4 3000

Expected output:
87058

Actual output:
87057


Fixed submission (verdict: Accepted):

def main():
    buf = input()
    buflist = buf.split()
    R = int(buflist[0])
    G = int(buflist[1])
    B = int(buflist[2])
    N = int(buflist[3])
    combination = 0
    for i in range(3001):
        if i * R > N:
            break
        for j in range(3001):
            if i * R + j * G > N:
                break
            if (N - (i * R + j * G)) % B == 0:
                combination += 1
    print(combination)


if __name__ == '__main__':
    main()

Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
R, G, B, N = map(int, input().split())
number = [R, G, B]
number = sorted(number)
M = N 
ans = 0

for i in range(0, M+1):
    value = i * number[2]
    L = (N-value) 
    for j in range(0, L+1):
        value += j * number[1]
        if (N-value) % number[0] == 0:
            ans += 1
            continue

print(ans)

Failing test case input:
8 1 8 175

Expected output:
253


Actual output:
2024


Fixed submission (verdict: Accepted):
R, G, B, N = map(int, input().split())
number = [R, G, B]
number = sorted(number)
M = N 
ans = 0

if number[2] == 1:
    print((N+2)*(N+1)
else:
    for i in range(0, M+1):
        value1 = i * number[2]
        L = (N-value1) 
        for j in range(0, L+1):
            value2 = j * number[1]
            if N-value1-value2 >= 0 and (N-value1-value2) % number[0] == 0:
                ans += 1
                continue
    
    print(ans)
Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
R,G,B,N=map(int,input().split())
r,g,b,count=0,0,0,0
for b in range(N):
	if B*b>N:break
	for g in range(N):
		r=-G*g-B*b+N
		if r<0:break
		if (r%R==0): count+=1
print(count)

Failing test case input:
13 1 1 86

Expected output:
336


Actual output:
334


Fixed submission (verdict: Accepted):
R,G,B,N=map(int,input().split())
r,g,b,count=0,0,0,0
for b in range(N+1):
	for g in range(N+1):
		r=-G*g-B*b+N
		if r<0:break
		if (r%R==0): count+=1
print(count)

Problem: p03048
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
r,g,b,n = map(int, input().split(" "))
l = sorted([r,g,b])
count=0
for i in range(n):
    for j in range(n):
        x = l[2]*i
        y = l[1]*j
        if x + y > n:
            break
        if (x+y)%l[0] == 0:
            count = count + 1
print(count)

Failing test case input:
4 11 4 118

Expected output:
42


Actual output:
57


Fixed submission (verdict: Accepted):
r,g,b,n = map(int, input().split(" "))
l = sorted([r,g,b])
count=0
for i in range(int(n/l[2])+1):
    for j in range(int(n/l[1])+1):
        x = l[2]*i
        y = l[1]*j
        if (n-x-y) >= 0 and (n-x-y)%l[0] == 0:
            count = count + 1
print(count)

Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

line=input().split(" ")
n=int(line[3])
r=int(line[0])
g=int(line[1])
b=int(line[2])
nline=sorted([r,g,b])
x=int(nline[2])
y=int(nline[1])
z=int(nline[0])

answers=0



for i in range(math.ceil(n/x)+1):
    a=i
    if z!=1:
        for j in range(math.ceil(n/y)+1-a*x):
            b=j
            c=(n-a*x-b*y)/z
            if c>=0 and (n-a*x-b*y)%z==0:
                answers+=1
                
    else:
        if (n-a*x)%y!=0:
            answers+=math.ceil((n-a*x)/y)
        else:
            answers+=(math.ceil((n-a*x)/y)+1)
        

print(answers)

Failing test case input:
7 16 10 162

Expected output:
14


Actual output:
2


Fixed submission (verdict: Accepted):


import math

line=input().split(" ")
n=int(line[3])
r=int(line[0])
g=int(line[1])
b=int(line[2])
nline=sorted([r,g,b])
x=int(nline[2])
y=int(nline[1])
z=int(nline[0])

answers=0



for i in range(math.ceil(n/x)+1):
    a=i
    if z!=1:
        for j in range(math.ceil((n-a*x)/y)+1):
            b=j
            c=(n-a*x-b*y)/z
            if c>=0 and (n-a*x-b*y)%z==0:
                answers+=1
                
    else:
        if n-a*x>=0:
            if n-a*x==0:
                answers+=1
                
            elif (n-a*x)%y!=0:
                answers+=math.ceil((n-a*x)/y)
                
            else:
                answers+=(math.ceil((n-a*x)/y)+1)
                
            

print(answers)
Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

line=input().split(" ")
n=int(line[3])
r=int(line[0])
g=int(line[1])
b=int(line[2])
nline=sorted([r,g,b])
x=int(nline[2])
y=int(nline[1])
z=int(nline[0])

answers=0



for i in range(math.ceil(n/x)+1):
    a=i
    if z!=1:
        for j in range(math.ceil(n/y)+1-a*x):
            b=j
            c=(n-a*x-b*y)/z
            if c>=0 and (n-a*x-b*y)%z==0:
                answers+=1
                
    else:
        if n-a*x>=0:
            if n-a*x==0:
                answers+=1
                
            elif (n-a*x)%y!=0:
                answers+=math.ceil((n-a*x)/y)
                
            else:
                answers+=(math.ceil((n-a*x)/y)+1)
                
            

print(answers)

Failing test case input:
10 3 9 118

Expected output:
31


Actual output:
5


Fixed submission (verdict: Accepted):


import math

line=input().split(" ")
n=int(line[3])
r=int(line[0])
g=int(line[1])
b=int(line[2])
nline=sorted([r,g,b])
x=int(nline[2])
y=int(nline[1])
z=int(nline[0])

answers=0



for i in range(math.ceil(n/x)+1):
    a=i
    if z!=1:
        for j in range(math.ceil((n-a*x)/y)+1):
            b=j
            c=(n-a*x-b*y)/z
            if c>=0 and (n-a*x-b*y)%z==0:
                answers+=1
                
    else:
        if n-a*x>=0:
            if n-a*x==0:
                answers+=1
                
            elif (n-a*x)%y!=0:
                answers+=math.ceil((n-a*x)/y)
                
            else:
                answers+=(math.ceil((n-a*x)/y)+1)
                
            

print(answers)

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

import itertools
from collections import Counter
from collections import defaultdict
import bisect

def main():
    R, G, B, N = map(int, input().split())

    ans = 0
    for r in range(3000):
        rest = N - r * R
        if rest < 0:
            break
        for g in range(3000):
            rest_2 = rest - g * G
            if rest_2 >= 0 and rest_2 % B == 0:
                ans += 1
                
    print(ans)


if __name__ == '__main__':
    main()


Failing test case input:
13 1 1 3000

Expected output:
347886


Actual output:
347885


Fixed submission (verdict: Accepted):

import itertools
from collections import Counter
from collections import defaultdict
import bisect

def main():
    R, G, B, N = map(int, input().split())

    ans = 0
    for r in range(3001):
        rest = N - r * R
        if rest < 0:
            break
        for g in range(3001):
            rest_2 = rest - g * G
            if rest_2 >= 0 and rest_2 % B == 0:
                ans += 1
                
    print(ans)


if __name__ == '__main__':
    main()
Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = [int(i) for i in input().split() ]


rgb =  n[0:3]
rgb.sort(reverse=True)


rm = int(n[3]/rgb[0] ) + 1
c = 0
for i in range(rm):
    print(i)
    if i * rgb[0] == n[3]:
            c += 1
            break
        
    for j in range(int((n[3] - i * rgb[0])/rgb[1]) + 1):
        

        if (n[3] - i * rgb[0] - j * rgb[1]) % rgb[2] == 0:
            c += 1

print (c)
    

Failing test case input:
6 3 15 87

Expected output:
54


Actual output:
0
1
2
3
4
5
54


Fixed submission (verdict: Accepted):
n = [int(i) for i in input().split() ]


rgb =  n[0:3]
rgb.sort(reverse=True)


rm = int(n[3]/rgb[0] ) + 1
c = 0
for i in range(rm):
    if i * rgb[0] == n[3]:
            c += 1
            break
        
    for j in range(int((n[3] - i * rgb[0])/rgb[1]) + 1):
        

        if (n[3] - i * rgb[0] - j * rgb[1]) % rgb[2] == 0:
            c += 1

print (c)

Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,C,N=map(int, input().split())
count=0
for x in range(N+1):
  for y in range(N-x*A+1):
    b=(N-x*A-y*B)/C
    if b>=0:
      count+=1
                
print(count)

Failing test case input:
7 11 10 118

Expected output:
11


Actual output:
105


Fixed submission (verdict: Accepted):
A,B,C,N=map(int, input().split())
count=0
for x in range(N+1):
  for y in range(N-x*A+1):
    b=(N-x*A-y*B)
    if b>=0 and b%C==0:
      count+=1
                
print(count)

Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int, input().split()))

rmax = int(n[3] / n[0])
ans = 0

for i in range(0, rmax+1):
  sum = i * n[0]
  while sum <= n[3]:
    if sum % n[2] == 0:
      ans += 1
    sum += n[1]

print(ans)

Failing test case input:
13 1 4 62

Expected output:
48


Actual output:
46


Fixed submission (verdict: Accepted):
n = list(map(int, input().split()))

rmax = int(n[3] / n[0])
ans = 0
k = n[3] % n[2]

for i in range(0, rmax+1):
  sum = i * n[0]
  while sum <= n[3]:
    if sum % n[2] == k:
      ans += 1
    sum += n[1]

print(ans)

Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
R, G, B, N = map(int, input().split())
number = [R, G, B]
number = sorted(number)
M = N 
ans = 0

for i in range(0, M+1):
    value = i * number[2]
    L = (N-value) 
    for j in range(0, L+1):
        value += j * number[1]
        if N-value >= 0 and (N-value) % number[0] == 0:
            ans += 1
            continue

print(ans)

Failing test case input:
7 13 20 118

Expected output:
5


Actual output:
3


Fixed submission (verdict: Accepted):
R, G, B, N = map(int, input().split())
number = [R, G, B]
number = sorted(number)
M = N 
ans = 0

if number[2] == 1:
    print((N+2)*(N+1)
else:
    for i in range(0, M+1):
        value1 = i * number[2]
        L = (N-value1) 
        for j in range(0, L+1):
            value2 = j * number[1]
            if N-value1-value2 >= 0 and (N-value1-value2) % number[0] == 0:
                ans += 1
                continue
    
    print(ans)
Problem: p03048
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
r, g, b, n = [int(i) for i in input().split()]
print(r, g, b)

r, g, b = sorted([r, g, b])

ans = 0
divb = n 
for i in range(divb+1):
    remain_n1 = n - b * i
    divg = remain_n1 
    for j in range(divg+1):
        remain_n2 = remain_n1 - g * j
        if remain_n2 % r == 0:
            ans += 1

print(ans)

Failing test case input:
6 7 10 219

Expected output:
61


Actual output:
6 7 10
429


Fixed submission (verdict: Accepted):
r, g, b, n = [int(i) for i in input().split()]

r, g, b = sorted([r, g, b])

ans = 0
divb = int(n / b)
for i in range(divb+1):
    remain_n1 = n - b * i
    divg = int(remain_n1 / g)
    for j in range(divg+1):
        remain_n2 = remain_n1 - g * j
        if remain_n2 % r == 0:
            ans += 1

print(ans)
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
  s = input()
  if s[-1] == s:
    ans = s + 'es'
  else:
    ans = s + 's'
  print(ans)
  
main()

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
def main():
  s = input()
  if s[-1] == 's':
    ans = s + 'es'
  else:
    ans = s + 's'
  print(ans)
  
main()

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
i = input()
if i[:1] == "s": i += "es"
else: i+= "s"
print(i)

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
i = input()
if i[-1:] == "s": i += "es"
else: i+= "s"
print(i)

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S = input()
print(S+'es' if S.endswith('s') else print(S+'s'))

Failing test case input:
xm`

Expected output:
xm`s


Actual output:
xm`s
None


Fixed submission (verdict: Accepted):
S = input()
if S.endswith('s'):
  print(S+'es')
else:
 print(S+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
a = (len(s))
if (s[a-1])=="e":
    print(s,"s", sep="")
else:
    print(s,"es", sep="")

Failing test case input:
px^

Expected output:
px^s


Actual output:
px^es


Fixed submission (verdict: Accepted):
s = input()
a = (len(s))
if (s[a-1])=="s":
    print(s,"es", sep="")
else:
    print(s,"s", sep="")

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S = input()
if S[-1]=="e":
  print(S+"s")
else:
  print(S+"es")

Failing test case input:
utb

Expected output:
utbs


Actual output:
utbes


Fixed submission (verdict: Accepted):
S = input()
if S[-1]=="s":
  print(S+"es")
else:
  print(S+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[-1] == s:
  print(s+"es")
else:
  print(s+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


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

if s[-1] == "s":
  print(s+"es")
else:
  print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = list(input())
num = len(S) - 1
if S[num] == 's':
    S[num] = 'e'
    S.append('s')
else:
    S.append('s')
print(''.join(S))

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
S = list(input())
num = len(S) - 1
if S[num] == 's':
    S.append('e')
    S.append('s')
else:
    S.append('s')
print(''.join(S))

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s  = str(input())
l = len(s)
if s[l-1]=="s":
    ans = s[:l-1]+"es"
else:
    ans = s+"s"

print(ans)


Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
s  = str(input())
l = len(s)
if s[l-1]=="s":
    ans = s+"es"
else:
    ans = s+"s"

print(ans)
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[-1] == "s":
    print(s+"s")
else:
    print(s+"es")

Failing test case input:
pw_

Expected output:
pw_s


Actual output:
pw_es


Fixed submission (verdict: Accepted):
s = input()
if s[-1] == "s":
    print(s+"es")
else:
    print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[-1]=="s":print(s+"es")
else:print(s+"es")



Failing test case input:
oy^

Expected output:
oy^s


Actual output:
oy^es


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=="s":print(s+"es")
else:print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

if S[-1] == 's':
  S = S + 's'
else:
  S = S + 'es'

print(S)

Failing test case input:
mcqo]

Expected output:
mcqo]s


Actual output:
mcqo]es


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

if S[-1] == 's':
  S = S + 'es'
else:
  S = S + 's'

print(S)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S= list(input())
if S[-1]=='s':
  S.append('e')
  S.append('S')
else:
  S.append('s')
  
print(''.join(S))  
  

Failing test case input:
bus

Expected output:
buses

Actual output:
buseS


Fixed submission (verdict: Accepted):
S= list(input())
if S[-1]=='s':
  S.append('e')
  S.append('s')
else:
  S.append('s')
  
print(''.join(S))

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def fukusu(s:str):
    
    if s[-1] == s:
        s += 'es'
    else:
        s += 's'
    return s

s = input()
s = fukusu(s)

print(s)


Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
def fukusu(s:str):
    
    if s[-1] == 's':
        s += 'es'
    else:
        s += 's'
    return s

s = input()
s = fukusu(s)

print(s)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if S[-1] == "s":
    print(S[:-1]+"es")
else:
    print(S+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
S = input()
if S[-1] == "s":
    print(S+"es")
else:
    print(S+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[-1] != s:
  print(s + "s")
else:
  print(s + "es")

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s = input()
if s[-1] != "s":
  print(s + "s")
else:
  print(s + "es")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
ret = s
if s[::-1] == "s":
    ret += "es"
else:
    ret += "s"

print(ret)

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s = input()
ret = s
if s[-1] == "s":
    ret += "es"
else:
    ret += "s"

print(ret)
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
s_list=list(s)
 
x=len(s_list)

if s_list[x-1]=="s":
  s_list.append("es")
else:
  s_list.append("s")

print(s_list)

Failing test case input:
^wo

Expected output:
^wos


Actual output:
^, w, o, s

Fixed submission (verdict: Accepted):
s=input()
s_list=list(s)
 
x=len(s_list)

if s_list[x-1]=="s":
  s_list.append("es")
else:
  s_list.append("s")

print("".join(s_list))

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

s=input()
if s[-1]=='e':
    s=s+'s'
else:
    s=s+'es'
print(s)

Failing test case input:
`ox

Expected output:
`oxs


Actual output:
`oxes


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=='s':
    s=s+'es'
else:
    s=s+'s'
print(s)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s[-1]==s:
    print(s+"es")
else:
    print(s+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=="s":
    print(s+"es")
else:
    print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = str(input())

if S[len(S)-1] == 'e':
    print(S + 's')
else:
    print(S + 'es')

Failing test case input:
ny`

Expected output:
ny`s


Actual output:
ny`es


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

if S[len(S)-1] == 's':
    print(S + 'es')
else:
    print(S + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=str(input())
s_split=s.split()
s_last=s_split[-1]

if s_last == "s" :
    print(s+"es")
else:
    print(s+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s=str(input())
s_split=list(s)
s_last=s_split[-1]


if s_last == 's' :
    print(s+'es')
else:
    print(s+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[-1] == 's':
  print((s+'s'))
else:
  print(s+'es')

Failing test case input:
uuc

Expected output:
uucs


Actual output:
uuces


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

if s[-1] != 's':
  print((s+'s'))
else:
  print(s+'es')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s[-1]=='e':print(s+'s')
else:print(s+'es')

Failing test case input:
usc

Expected output:
uscs


Actual output:
usces


Fixed submission (verdict: Accepted):
s=input()
if s[-1]!='s':print(s+'s')
else:print(s+'es')

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s=input()
if s[-1]==s:
    s+='es'
else:
    s+='s'
print(s)

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s=input()
if s.endswith("s"):
    s+='es'
else:
    s+='s'
print(s)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[:-1]=='s':
    print(s+'es')
else:
    print(s+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


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

if s[-1]=='s':
    print(s+'es')
else:
    print(s+'s')
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

s = input()

if s[len(s)-1] == "s":
    ans = s.rstrip() + "es"
    print(ans)
else:
    ans = s.rstrip() + "s"
    print(ans)

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline

s = input()

if s[len(s)-2] == "s":
    ans = s.rstrip() + "es"
    print(ans)
else:
    ans = s.rstrip() + "s"
    print(ans)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
input = sys.stdin.readline().strip()
last_alpha = input[-1]
if last_alpha == 's':
    print(input[0:-1] + 'es')
else:
    print(input + 's')

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline().strip()
last_alpha = input[-1]
if last_alpha == 's':
    print(input + 'es')
elif last_alpha == 'e':
    print(input + 's')
else:
    print(input + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input("Enter Input:")

if s[len(s) -  1] != "s":
    s += "s"

elif s[len(s) - 1] == "s":
    s += "es"

print(s)
    

Failing test case input:
utc

Expected output:
utcs


Actual output:
Enter Input:utcs


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

if s[len(s) -  1] != "s":
    s += "s"

elif s[len(s) - 1] == "s":
    s += "es"

print(s)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

def input(): return sys.stdin.readline().rstrip("\r\n")
def List(): return list(map(int, input().split()))
def Num(): return int(input())


s = input()
if s[-1] != 'e':
    print(s + 'es')
else:
    print(s + 's')


Failing test case input:
ucu

Expected output:
ucus


Actual output:
ucues


Fixed submission (verdict: Accepted):
import sys

def input(): return sys.stdin.readline().rstrip("\r\n")
def List(): return list(map(int, input().split()))
def Num(): return int(input())


s = input()
if s[-1] == 's':
    print(s + 'es')
else:
    print(s + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[-1] == 's':
    print(s[:-1] + 'es')
else:
    print(s + 's')


Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
s = input()
if s[-1] == 's':
    print(s + 'es')
else:
    print(s + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[-1] == "s":
  print(s[:-1]+"es")
else:
  print(s+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
s = input()
if s[-1] == "s":
  print(s+"es")
else:
  print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
if S[-1:]=="s":
    print("S"+"es")
else:
    print("S"+"s")

Failing test case input:
eaplp

Expected output:
eaplps


Actual output:
Ss


Fixed submission (verdict: Accepted):
S=input()
if S[-1:]=="s":
    print(S+"es")
else:
    print(S+"s")
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = list(str(input()))
L = len(S)
if S[L-1] == "s":
    S[L-1] = "es"
else:
    S.append("s")
K =''.join(S)
print(K)

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
S = list(str(input()))
L = len(S)
if S[L-1] == "s":
    S.append("es")
else:
    S.append("s")
K =''.join(S)
print(K)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
word = input()

if word[-1] == "s":
  print(word + "es")
else:
  print(word)

Failing test case input:
px^

Expected output:
px^s


Actual output:
px^


Fixed submission (verdict: Accepted):
word = input()
if word[-1] == "s":
  print(word + "es")
else:
  print(word + "s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
word = input()
if word[-1] == "s":
  word_new =word[:-1] + "es"
  print(word_new)
else:
  print(word + "s")

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
word = input()
if word[-1] == "s":
  word_new = word + "es"
  print(word_new)
else:
  print(word + "s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

N = S[-1]

if N == 'e':
    print(S+'s')

else:
    print(S+'es')


Failing test case input:
_wp

Expected output:
_wps


Actual output:
_wpes


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

N = S[-1]


if N == 's':
    print(S+'es')

else:
    print(S+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[-1]=='e':
    s=s+'s'
else:
    s=s+'es'
print(s)   

Failing test case input:
]pqbl

Expected output:
]pqbls


Actual output:
]pqbles


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

if s[-1]=='e':
    s=s+'s'
elif s[-1]=='s':
    s=s+'es'
else:
    s=s+'s'
print(s)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s[-1]=='s':
  print(s[:-1]+'es')
elif s[-1]!='s':
  print(s[:-1]+'s')

Failing test case input:
buu

Expected output:
buus


Actual output:
bus


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=='s':
    print(s+'es')
else:
    print(s+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = str(input())

if S[-1] != 'S':
  S = S + 's'
else:
  S = S + 'es'
  
print(S)

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


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

if S[-1] != 's':
  S = S + 's'
else:
  S = S + 'es'
  
print(S)
Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
    import sys
    inl = sys.stdin.buffer.readline
    
    n = input()
    print(n)
    if(n[len(n)-1] =="s"):
        n+='es'
    else:
        n+='s'
    print(n)


        


    




















if __name__ == "__main__":
    main()

Failing test case input:
urc

Expected output:
urcs


Actual output:
urc
urcs


Fixed submission (verdict: Accepted):
def main():
    import sys
    inl = sys.stdin.buffer.readline
    
    n = input()

    if(n[len(n)-1] =="s"):
        n+='es'
    else:
        n+='s'
    print(n)


        


    




















if __name__ == "__main__":
    main()

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = input()

if s[-1] != 's':
	print(s)
else:
	print(s + 'es')

Failing test case input:
xm`

Expected output:
xm`s


Actual output:
xm`


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

if s[-1] != 's':
	print(s + 's')
else:
	print(s + 'es')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

    
    


import sys, os.path


    
    

sys.setrecursionlimit(10 ** 5)

def mod(): return 10**9+7
def i(): return sys.stdin.readline().strip()
def ii(): return int(sys.stdin.readline())
def li(): return list(sys.stdin.readline().strip())
def mii(): return map(int, sys.stdin.readline().split())
def lii(): return list(map(int, sys.stdin.readline().strip().split()))



def solve():
    a=i()
    if a[-1]=='s':
        print(a[:-1]+'es')
    else: 
        print(a+'s')
solve()

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):

    
    


import sys, os.path


    
    

sys.setrecursionlimit(10 ** 5)

def mod(): return 10**9+7
def i(): return sys.stdin.readline().strip()
def ii(): return int(sys.stdin.readline())
def li(): return list(sys.stdin.readline().strip())
def mii(): return map(int, sys.stdin.readline().split())
def lii(): return list(map(int, sys.stdin.readline().strip().split()))



def solve():
    a=i()
    if a[-1]=='s':
        print(a+'es')
    else: 
        print(a+'s')

for _ in range(1):
    solve()

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = input()
if s[-1] == "e":
    print(s + "s")
else:
    print(s + "es")

Failing test case input:
mcq]o

Expected output:
mcq]os


Actual output:
mcq]oes


Fixed submission (verdict: Accepted):
s = input()
if s[-1] == "s":
    print(s + "es")
else:
    print(s + "s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[-1] == "s":
    print(s[:-1] + "es")

else:
    print(s + "s")


Failing test case input:
bus

Expected output:
buses

Actual output:
bues


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

if s[-1] == "s":
    print(s + "es")

else:
    print(s + "s")
Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = input()

if s[-1] == s:
    print(s+'es')
else:
    print(s+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


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

if s[-1] == 's':
    print(s+'es')
else:
    print(s+'s')

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
sys.setrecursionlimit(10**6)


def main(input, print):
    s = input()

    if(s[-1] == 's'):
        print(s+'es')
    else:
        print(s+'s')


if __name__ == '__main__':
    main(sys.stdin.readline, print)


Failing test case input:
oy^

Expected output:
oy^s


Actual output:
oy^
s


Fixed submission (verdict: Accepted):
import sys
sys.setrecursionlimit(10**6)


def main(input, print):
    s = input().strip()

    if(s[-1] == 's'):
        print(s+'es')
    else:
        print(s+'s')


if __name__ == '__main__':
    main(sys.stdin.readline, print)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    n = list(str(input()))
    if n[-1] == "e":
        n.append("s")
    else :
        n.append("es")
    print(''.join(n))
main()

Failing test case input:
o]qmc

Expected output:
o]qmcs


Actual output:
o]qmces


Fixed submission (verdict: Accepted):
def main():
    n = list(str(input()))
    if n[-1] == "s":
        n.append("es")
    else :
        n.append("s")
    print(''.join(n))
main()

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
print(s+'es' if s[-1]==s else s+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s = input()
print(s+'es' if s[-1]=='s' else s+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
if N[-1] != 's':
    print(N+'s')
else:
    print(N[:-1]+'es')

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
N = input()
if N[-1] != 's':
    print(N+'s')
else:
    print(N+'es')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[len(s) - 1] == 's':
  print(s[:len(s) - 1] + 'es')
else:
  print(s + 's')


Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
s = input()
if s[len(s) - 1] == 's':
  print(s + 'es')
else:
  print(s + 's')

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = input()
if s[-1] == s:
  s += 'es'
else:
  s += 's'
print(s)

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s = input()
if s[-1] == 's':
  s += 'es'
else:
  s += 's'
print(s)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[len(s)-1] != s:
    print(s + "s")
else:
    print(s + "es")

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s = input()
if s[len(s)-1] != "s":
    print(s + "s")
else:
    print(s + "es")
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

a = S[:-1]
b = S[-1]
if b == 's': print(a + 'es')
else: print(a + 's')

Failing test case input:
ttc

Expected output:
ttcs


Actual output:
tts


Fixed submission (verdict: Accepted):
S = input()
 
a = S[-1]
if a == 's': print(S + 'es')
else: print(S + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[-1] == "s":
  print(s[:-1]+'es')
else:
  print(s+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
S = input()
if S[-1] == "s":
	print(S + "es")
else:
  	print(S + "s")

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = input()

if s[-1] == 's':
	print(s)
else:
	print(s + 'es')

Failing test case input:
qlb^p

Expected output:
qlb^ps


Actual output:
qlb^pes


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

if s[-1] != 's':
	print(s + 's')
else:
	print(s + 'es')

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s=input()
if s[-1]==s:
  print(s+'es')
else:
  print(s+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=='s':
  print(s+'es')
else:
  print(s+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if S[-1]=='s':
    s = S+'s'
else:
    s = S+'es'
print(s)

Failing test case input:
lqbq]

Expected output:
lqbq]s


Actual output:
lqbq]es


Fixed submission (verdict: Accepted):
S = input()
if S[-1]=='s':
    s = S+'es'
else:
    s = S+'s'
print(s)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s[-1]=='s':
    print(s[:-1]+'es')
else:
    print(s+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=='s':
    print(s+'es')
else:
    print(s+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = str(input())
if S[-1] == 's':
	S += 's'
else:
	S += 'es'
print(S)

Failing test case input:
crv

Expected output:
crvs


Actual output:
crves


Fixed submission (verdict: Accepted):
S = str(input())
if S[-1] != 's':
  S += 's'
else:
  S += 'es'
print(S)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if S[-1] == 'e':
    print(S+'s')
else:
    print(S+'es')



Failing test case input:
tcu

Expected output:
tcus


Actual output:
tcues


Fixed submission (verdict: Accepted):
S = input()
if S[-1] == 's':
    print(S+'es')
else:
    print(S+'s')

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s =input()

if s[-1] == s:
  print('es')
else:
  print('s')

Failing test case input:
tct

Expected output:
tcts


Actual output:
s


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

if s[-1] == 's':
  print(s+'es')
else:
  print(s+'s')
Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s =input()

if s[-1] == s:
  print(s+'es')
else:
  print(s+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


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

if s[-1] == 's':
  print(s+'es')
else:
  print(s+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = list(input())

es = list("es")
ss = list("s")

print(len(s))


f = s[len(s)-1]
print(f)

if f == "s":
  ans = s+es
  ans = "".join(ans)
  print(ans)
else:
  ans = s+ss
  ans = "".join(ans)
  print(ans)
  


Failing test case input:
oy^

Expected output:
oy^s


Actual output:
3
^
oy^s


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

es = list("es")
ss = list("s")




f = s[len(s)-1]


if f == "s":
  ans = s+es
  ans = "".join(ans)
  print(ans)
else:
  ans = s+ss
  ans = "".join(ans)
  print(ans)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):



import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    return

main()


Failing test case input:
tbv

Expected output:
tbvs


Actual output:

Fixed submission (verdict: Accepted):



import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    S = i2s()
    if S[-1] != 's':
        print(S + 's')
    else:
        print(S + 'es')
    return

main()

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

if S[-1] != "s":
    print(S+"s")
else:
    print(S[:-1]+"es")

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


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

if S[-1] != "s":
    print(S+"s")
else:
    print(S+"es")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[-1] == 's':
  print(s[0:-1] + 'es')
else:
  print(s + 's')


Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
s = input()
 
if s[-1] == 's':
  print(s + 'es')
else:
  print(s + 's')

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s = input().rstrip()

if s[-1]==s:
  s += 'es'
else:
  s += 's'
  
print(s)

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


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

if s[-1]=='s':
  s += 'es'
else:
  s += 's'
  
print(s)
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
n=len(S)
if S[n-1]=='s':
    print(S[:-1]+'es')
else:
    print(S+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
S=input()
n=len(S)
if S[n-1]=='s':
    print(S+'es')
else:
    print(S+'s')

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n=input()
if n[:-1]=='s':
  print(n+'es')
else:
  print(n+'s')

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
n=input()
if n[-1]=='s':
  print(n+'es')
else:
  print(n+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

import sys
import math
from functools import reduce
from bisect import bisect_left

def readString():
    return sys.stdin.readline()

def readInteger():
    return int(readString())

def readStringSet(n):
    return sys.stdin.readline().split(" ")[:n]

def readIntegerSet(n):
    return list(map(int, readStringSet(n)))

def readIntegerMatrix(n, m):
    return [lambda _: readIntegerSet(m) for _ in range(0, n)]

def main(S):
    return S + "es" if S.endswith("s") else S + "s"

if __name__ == "__main__":
    _S = readString()

    print(main(_S))

Failing test case input:
d`plp

Expected output:
d`plps


Actual output:
d`plp
s


Fixed submission (verdict: Accepted):

import sys
import math
from functools import reduce
from bisect import bisect_left

def readString():
    return sys.stdin.readline()

def readInteger():
    return int(readString())

def readStringSet(n):
    return sys.stdin.readline().split(" ")[:n]

def readIntegerSet(n):
    return list(map(int, readStringSet(n)))

def readIntegerMatrix(n, m):
    return [lambda _: readIntegerSet(m) for _ in range(0, n)]

def main(S):
    return S + "es" if S.endswith("s") else S + "s"

if __name__ == "__main__":
    _S = readString().rstrip()

    print(main(_S))

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[-1] == "s":
  print(s[:-1]+"es")
else:
  print(s+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
s = input()
if s[-1] == "s":
  print(s+"es")
else:
  print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

if S[-1] == 'e':
    print(S+'s')
else:
    print(S+'es')

Failing test case input:
_yo

Expected output:
_yos


Actual output:
_yoes


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

if S[-1] == 's':
    print(S+'es')
else:
    print(S+'s')

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
import collections as cc
import bisect as bi
I=lambda:list(map(int,input().split()))
s=input()
if s[-1]!='s':
	print(s[:len(s)-1]+'es')
else:
	print(s[:len(s)-1]+'s')

Failing test case input:
lqbq]

Expected output:
lqbq]s


Actual output:
lqbqes


Fixed submission (verdict: Accepted):
import sys
import collections as cc
import bisect as bi
I=lambda:list(map(int,input().split()))
s=input()
if s[-1]!='s':
	print(s[:len(s)]+'s')
else:
	print(s+'es')
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
word = input()

last = word[-1]

if last == 's':
  word = f'{word}es'
else:
  word = f'{word}s'
  


Failing test case input:
ny_

Expected output:
ny_s


Actual output:

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

if word[-1] == 's':
  word = f'{word}es'
else:
  word = f'{word}s'
  
print(word)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[-1]=="s":
  print(s+"es")
else:
  print(s)

Failing test case input:
crv

Expected output:
crvs


Actual output:
crv


Fixed submission (verdict: Accepted):
s = input()
if s[-1]=="s":
  print(s+"es")
else:
  print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()

if S.endswith=='s':
  S=S+'es'
else:
  S=S+'s'
  
print(S)

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


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

if S.endswith('s'):
  S=S+'es'
else:
  S=S+'s'
  
print(S)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s[-1]=="e":
    print(s+"s")
else:
    print(s+"es")
    

Failing test case input:
qlbq]

Expected output:
qlbq]s


Actual output:
qlbq]es


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=="s":
    print(s+"es")
else:
    print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
string = input('入力して下さい')
if string.endswith('s'):
    print(string + 'es')
else:
    print(string + 's')

Failing test case input:
ubu

Expected output:
ubus


Actual output:
入力して下さいubus


Fixed submission (verdict: Accepted):
string = input('')
if string.endswith('s'):
    print(string + 'es')
else:
    print(string + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s[-1]==s:
  print(s+"es")
else:
  print(s+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=="s":
  print(s+"es")
else:
  print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
a = len(S)
if S[a-1] == 's':
    print(S[:a-1]+'es')
else:
    print(S+'s')


Failing test case input:
bus

Expected output:
buses

Actual output:
bues


Fixed submission (verdict: Accepted):
S = input()
a = len(S)
if S[a-1] == 's':
    print(S+'es')
else:
    print(S+'s')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = list(input())
if s[-1] == 's':
    s[-1] = 'es'
    print(s)
    print(''.join(s))
else:
    print(''.join(s) + 's')

Failing test case input:
bus

Expected output:
buses

Actual output:
['b', 'u', 'es']
bues


Fixed submission (verdict: Accepted):
s = list(input())
if s[-1] == 's':
    print(''.join(s)+ 'es')
else:
    print(''.join(s) + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[-1] == s:
  print(s+"es")
else:
  print(s+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s = input()
 
if s[-1] == "s":
  print(s+"es")
else:
  print(s+"s")
Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[-1] == 'S':
  print(s + 'es')
  
else:
  print(s + 's')

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s = input()
 
if s[-1] == 's':
    print(s + 'es')
    
else:
    print(s + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s[-1]=='s':
  s+='es'
else:
  s+='s'

Failing test case input:
^oy

Expected output:
^oys


Actual output:

Fixed submission (verdict: Accepted):
s=input()
if s[-1]=='s':
  s+='es'
else:
  s+='s'
print(s)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
if s[-1]==s:
    print(s+"es")
else:
    print(s+"s")

Failing test case input:
bus

Expected output:
buses

Actual output:
buss


Fixed submission (verdict: Accepted):
s=input()
if s[-1]=="s":
    print(s+"es")
else:
    print(s+"s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

if len(S)-1 =="e" :
	print(S + "s")
else :
	print(S + "es")

Failing test case input:
usc

Expected output:
uscs


Actual output:
usces


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

if S[len(S)-1] =="s" :
	print(S + "es")
else :
	print(S + "s")

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if (s[-1:] == "s"):
    print(s)
else:
    print(s + "s")

Failing test case input:
bus

Expected output:
buses

Actual output:
bus


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

if (s[-1:] == "s"):
    print(s + "es")
else:
    print(s + "s")

Problem: p02546
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S = input()
print(S + 's' if S[-1] != 's' else 'es')


Failing test case input:
bus

Expected output:
buses

Actual output:
es


Fixed submission (verdict: Accepted):
S = input()
print(S + ('s' if S[-1] != 's' else 'es'))

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if S[-1] == 's':
  print(S)
else:
  print(S + 's')

Failing test case input:
bus

Expected output:
buses

Actual output:
bus


Fixed submission (verdict: Accepted):
S = input()
if S[-1] == 's':
  print(S + 'es')
else:
  print(S + 's')

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = input()
if x.endswith("s") == True:
  x = x + "es"
else:
  x = x + "s"

Failing test case input:
_yo

Expected output:
_yos


Actual output:

Fixed submission (verdict: Accepted):
x = input()
if x.endswith("s") == True:
  x = x + "es"
else:
  x = x + "s"
print(x)

Problem: p02546
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
print(s)
if s[-1]=='s':
  print(s+"es")
print(s+"s")


Failing test case input:
xoa

Expected output:
xoas


Actual output:
xoa
xoas


Fixed submission (verdict: Accepted):
s=str(input())
if(s[-1]=="s"):
  	print(s+"es")
else:
	print(s+"s")