ZhenlongDai/ACPR huggingface dataset:
Problem: p03971
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from sys import stdin
from math import ceil, floor
n, a, b = [int(x) for x in stdin.readline().rstrip().split()]
s = list(stdin.readline().rstrip())
c = a + b
d = 0
e = 0
for i in range(n):
    if d < c and s[i] == "a":
        print("YES")
        d += 1
    elif d < c and e < b and s[i] == "b":
        print("YES")
        d += 1
        e += 1
    else:
        print("NO")

Failing test case input:
12 4 4
caababaccaba

Expected output:
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
Yes
No


Actual output:
NO
YES
YES
YES
YES
YES
YES
NO
NO
YES
YES
NO


Fixed submission (verdict: Accepted):
from sys import stdin
from math import ceil, floor
n, a, b = [int(x) for x in stdin.readline().rstrip().split()]
s = list(stdin.readline().rstrip())
c = a + b
d = 0
e = 0
for i in range(n):
    if d < c and s[i] == "a":
        print("Yes")
        d += 1
    elif d < c and e < b and s[i] == "b":
        print("Yes")
        d += 1
        e += 1
    else:
        print("No")

Problem: p03971
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
s=input()
num=0
count=0
for i in s:
    if i=="a" and num<a+b:
        num+=1
        count+=1
        print("Yes")
    elif i=="b" and num<a+b and count<=b:
        num+=1
        count+=1
        print("Yes")
    else:
        print("No")


Failing test case input:
12 4 3
abaccababaac

Expected output:
Yes
Yes
Yes
No
No
Yes
Yes
Yes
Yes
No
No
No


Actual output:
Yes
Yes
Yes
No
No
Yes
No
Yes
No
Yes
Yes
No


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
s=input()
c=a+b
A=0
B=0
for i in s:
    if A+B<c:
        if i=="a":
            A+=1
            print("Yes")
        elif i=="b" and B<b:
            B+=1
            print("Yes")
        else:
            print("No")
    else:
        print("No")

Problem: p03971
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
s = str(input())
border = a + b
cou = 0
ans = 0
for i in range(n):
    if s[i] == "c":
        print("No")
    elif s[i] == "b":
        if cou < a + b:
            if ans + 1 <= b:
                ans += 1
                cou += 1
                print("Yes")
            else:
                print("No")
        else:
            print("No")
    else:
        if cou < a + b:
            cou += 1
            print("Yes")

Failing test case input:
12 2 4
cabbabacaaca

Expected output:
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No


Actual output:
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
s = str(input())
border = a + b
cou = 0
ans = 0
for i in range(n):
    if s[i] == "c":
        print("No")
    elif s[i] == "b":
        if cou < a + b:
            if ans + 1 <= b:
                ans += 1
                cou += 1
                print("Yes")
            else:
                print("No")
        else:
            print("No")
    else:
        if cou < a + b:
            cou += 1
            print("Yes")
        else:
            print("No")
Problem: p03971
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
s=input()

tp=0
up=0

for i in range(n):
  if tp >= a+b:
    print('No')
  elif s[i]=='a':
    print('Yes')
    tp+=1
  elif s[i]=='b':
    if up < b:
      print('Yes')
      tp+=1
      up+=1
  else:
    print('No')

Failing test case input:
10 4 0
abccaaabbb

Expected output:
Yes
No
No
No
Yes
Yes
Yes
No
No
No


Actual output:
Yes
No
No
Yes
Yes
Yes
No
No
No


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
s=input()

tp=0
up=0

for i in range(n):
  if tp >= a+b:
    print('No')
  elif s[i]=='a':
    print('Yes')
    tp+=1
  elif s[i]=='b':
    if up < b:
      print('Yes')
      tp+=1
      up+=1
    else:
      print('No')
  else:
    print('No')

Problem: p03971
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, A, B = map(int, input().split())
S = input()
 
ok_count = 0
ok_fcount = 0
for i in range(N):
  if S[i] == 'a':
    if ok_count < A+B-1:
      print('Yes')
      ok_count +=1
      
    else:
      print('No')
      
  elif S[i] == 'b':
    if ok_count <= A+B-1 and ok_fcount < B-1:
      print('Yes')
      ok_count+=1
      ok_fcount+=1
      
    else:
      print('No')
      
  else:
    print('No')

Failing test case input:
12 7 2
caababaccbba

Expected output:
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
Yes


Actual output:
No
Yes
Yes
Yes
Yes
No
Yes
No
No
No
No
Yes


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
S = input()
 
ok_count = 0
ok_fcount = 0
for i in range(N):
  if S[i] == 'a':
    if ok_count < A+B:
      print('Yes')
      ok_count +=1
      
    else:
      print('No')
      
  elif S[i] == 'b':
    if ok_count < A+B and ok_fcount < B:
      print('Yes')
      ok_count+=1
      ok_fcount+=1
      
    else:
      print('No')
      
  else:
    print('No')

Problem: p03971
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
s = str(input())
domestic = 0
abroad = 0

for i in s:
    if i == 'a':
        domestic += 1
        if domestic + abroad <= a + b + 1:
            print('Yes')
        else:
            print('No')
    elif i == 'b':
        abroad += 1
        if domestic + abroad <= a + b + 1 and abroad <= b + 1:
            print('Yes')
        else:
            print('No')
    else:
        print('No')


Failing test case input:
10 2 1
abccabaabb

Expected output:
Yes
Yes
No
No
Yes
No
No
No
No
No


Actual output:
Yes
Yes
No
No
Yes
Yes
No
No
No
No


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
s = str(input())
domestic = 0
abroad = 0

for i in s:
    if i == 'a':
        if domestic + abroad <= a + b - 1:
            print('Yes')
            domestic += 1
        else:
            print('No')
    elif i == 'b':
        if domestic + abroad <= a + b - 1 and abroad <= b - 1:
            print('Yes')
            abroad += 1
        else:
            print('No')
    else:
        print('No')
Problem: p03971
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,a,b=map(int,input().split())
s=input().strip()
njp=0
nop=0
for i in range(len(s)):
  if s[i]=='a':
    if njp<(a+b):
      njp+=1
      print('Yes')
    else:
      print('No')
  elif s[i]=='b':
    if njp<(a+b):
      if nop<=b:
        nop+=1
        njp+=1
        print('yes')
      else:
        print('No')
    else:
      print('No')
  else:
    print('No')


Failing test case input:
12 5 2
cabbabaacaca

Expected output:
No
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
No
No


Actual output:
No
Yes
yes
yes
Yes
yes
Yes
Yes
No
No
No
No


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
s=input().strip()
njp=0
nop=0
for i in range(len(s)):
  if s[i]=='a':
    if njp<(a+b):
      njp+=1
      print('Yes')
    else:
      print('No')
  elif s[i]=='b':
    if njp<(a+b):
      if nop<b:
        nop+=1
        njp+=1
        print('Yes')
      else:
        print('No')
    else:
      print('No')
  else:
    print('No')

Problem: p03971
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,a,b =map(int,input().split())
s = input()
cnt = 0
for i in range(n):
    if s[i] == 'a':
        if cnt <a+b:
            print('Yes')
            cnt +=1
        else:
            print('No')
    elif s[i] == 'b':
        if cnt <a+b and i < b-1:
            print('Yes')
            cnt +=1
        else:
            print('No')
    else:
        print('No')

Failing test case input:
12 5 1
cacbabaacaba

Expected output:
No
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
No
No


Actual output:
No
Yes
No
No
Yes
No
Yes
Yes
No
Yes
No
Yes


Fixed submission (verdict: Accepted):
n,a,b =map(int,input().split())
s = input()
cnt = 0
p = 0
for i in range(n):
    if s[i] == 'a':
        if cnt <a+b:
            print('Yes')
            cnt +=1
        else:
            print('No')
    elif s[i] == 'b':
        p +=1
        if cnt <a+b and p <=b:
            print('Yes')
            cnt +=1
        else:
            print('No')
    else:
        print('No')

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

N, A,B = map(int, input().split())
S = input()
tmp = 0
tmp2 = 0

for i in range(N):
    if S[i] =="a":
        tmp += 1
    elif S[i] =="b":
        tmp2 += 1
    else:
        pass

    if S[i] =="a" and tmp <= A+B:
        print("Yes")
    elif S[i] =="b" and tmp <= A+B and tmp2 <= B:
        tmp += 1
        print("Yes")
    else:
        print("No")

Failing test case input:
10 2 3
abccababbb

Expected output:
Yes
Yes
No
No
Yes
Yes
Yes
No
No
No


Actual output:
Yes
Yes
No
No
Yes
Yes
Yes
Yes
No
No


Fixed submission (verdict: Accepted):

N, A,B = map(int, input().split())
S = input()
tmp = 0
tmp2 = 0

for i in range(N):
    if S[i] =="a":
        tmp += 1
    elif S[i] =="b":
        tmp2 += 1
    else:
        pass

    if S[i] =="a" and tmp <= A+B:
        print("Yes")
    elif S[i] =="b" and tmp+1 <= A+B and tmp2 <= B:
        tmp += 1
        print("Yes")
    else:
        print("No")
Problem: p03971
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = list(map(int, input().split()))
S = list(input())
a = 0
b = 0
for i in range(N):
	if S[i] == "a":
		if a + b < A + B:
			print("Yes")
		else:
			print("No")
		a += 1
	elif S[i] == "b":
		if a + b < A + B and  b < B:
			print("Yes")
		else:
			print("No")
		b += 1
	else:
		print("No")

Failing test case input:
12 3 0
abacbbaabaac

Expected output:
Yes
No
Yes
No
No
No
Yes
No
No
No
No
No


Actual output:
Yes
No
Yes
No
No
No
No
No
No
No
No
No


Fixed submission (verdict: Accepted):
N, A, B = list(map(int, input().split()))
S = list(input())
a = 0
b = 0
ps = 0
for i in range(N):
	if S[i] == "a":
		if ps < A + B:
			print("Yes")
			ps += 1
		else:
			print("No")
		a += 1
	elif S[i] == "b":
		if ps < A + B and  b < B:
			print("Yes")
			b += 1
			ps += 1
		else:
			print("No")
		
	else:
		print("No")

Problem: p03971
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
S = input()
a = b = 0
for s in S:
  if s == 'a' and a+b < A+B:
    print('Yes')
    a += 1
  elif s == 'b' and b < B:
    print('Yes')
    b += 1
  else:
    print('No')

Failing test case input:
10 2 2
abccacaabb

Expected output:
Yes
Yes
No
No
Yes
No
Yes
No
No
No


Actual output:
Yes
Yes
No
No
Yes
No
Yes
No
Yes
No


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
S = input()
a = b = 0
for s in S:
  if s == 'a' and a+b < A+B:
    print('Yes')
    a += 1
  elif s == 'b' and a+b < A+B and b < B:
    print('Yes')
    b += 1
  else:
    print('No')

Problem: p03971
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, A, B = map(int, input().split())
S = input()
counta = 0
countb = 0
for s in S:
    if s =='a':
        counta += 1
        if counta <= A + B:
            print('Yes')
        else:
            print('No')
    if s =='b':
        countb += 1
        if counta <= A + B and countb <= B:
            counta += 1
            print('Yes')
        else:
            print('No')
    if s=='c':
        print('No')

Failing test case input:
12 3 2
caacababcaba

Expected output:
No
Yes
Yes
No
Yes
Yes
Yes
No
No
No
No
No


Actual output:
No
Yes
Yes
No
Yes
Yes
Yes
Yes
No
No
No
No


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
S = input()
counta = 0
countb = 0
for s in S:
    if s =='a':
        if counta + countb < A + B:
            counta += 1
            print('Yes')
        else:
            print('No')
    if s =='b':
        if counta + countb < A + B:
            if countb < B:
                countb += 1
                print('Yes')
            else:
                print('No')                
        else:
            print('No')
    if s=='c':
        print('No')
Problem: p03971
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
p = 0
n, a, b = map(int, input().split())
for i in input():
    if i == "a" and p > a+b:
        p += 1
        print("Yes")
    elif i == "b" and p > a+b and f > a+b:
        f += 1
        print("Yes")
    else:
        print("No")

Failing test case input:
12 3 0
abacbbaabaac

Expected output:
Yes
No
Yes
No
No
No
Yes
No
No
No
No
No


Actual output:
No
No
No
No
No
No
No
No
No
No
No
No


Fixed submission (verdict: Accepted):
p = 0
f = 0
n, a, b = map(int, input().split())
for i in input():
    if i == "a" and p < a+b:
        p += 1
        print("Yes")
    elif i == "b" and p < a+b and f < b:
        p += 1
        f += 1
        print("Yes")
    else:
        print("No")

Problem: p03971
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
s = input()

success = 0
foreigner = 0
count = 0

for i in s:
    if i == "a" and success <= a + b:
        print("Yes")
        success += 1
    elif i == "b" and success <= a + b and foreigner <= b:
        print("Yes")
        success += 1
        foreigner += 1
    else:
        print("No")
    count += 1
    if success == a + b:
        break

for _ in range(n - count):
    print("No")

Failing test case input:
12 7 1
abbccababaac

Expected output:
Yes
Yes
No
No
No
Yes
No
Yes
No
Yes
Yes
No


Actual output:
Yes
Yes
Yes
No
No
Yes
No
Yes
No
Yes
Yes
No


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
s = input()

success = 0
foreigner = 0
count = 0

for i in s:
    if i == "a":
        print("Yes")
        success += 1
    elif i == "b" and foreigner < b:
        print("Yes")
        success += 1
        foreigner += 1
    else:
        print("No")
    count += 1
    if success == a + b:
        break

for _ in range(n - count):
    print("No")
Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if b - a == c - b:
    print('Yes')
else:
    print('No')

Failing test case input:
3 -1 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if b - a == c - b:
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if (b - a) == (c - b):
    print('YES')
elif (a - b) == (b - c):
    print('YES')
else:
    print('No')


Failing test case input:
1 1 -3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

ans = 'NO'

if b - a == c - b:
    ans = 'YES'
elif a - b == b - c:
    ans = 'YES'

print(ans)

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, (input().split()))
print('YES' if abs(b-a) == abs(c-b) else 'NO')    

Failing test case input:
-1 -6 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = map(int, (input().split()))
print("YES" if b-a==c-b else "NO")

Problem: p03759
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a, b, c = map(int,input().split())

print("YES" if abs(b-a) == abs(c-b) else "NO")

Failing test case input:
1 10 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())

print("YES" if b-a == c-b else "NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(map(int, input().split()))
 
a=l[0]
b=l[1]
c=l[2]
 
A=b-a
B=c-b
 
if A==B:
    print('Yes')
else:
    print('No')

Failing test case input:
2 8 6

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
 
a=l[0]
b=l[1]
c=l[2]
 
A=b-a
B=c-b
 
if A==B:
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if b*2==a+c:
  print("Yes")
else:
  print("No")

Failing test case input:
2 4 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if b*2==a+c:
  print("YES")
else:
  print("NO")

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








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



if abs(b - a) == abs(c - b):
    print("YES")
else:
    print("No")


Failing test case input:
-1 -2 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):








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



if (b - a) == (c - b):
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())

if a-b == c-b:
    print('YES')
else:
    print('NO')

Failing test case input:
1 0 -1

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())

if b-a == c-b:
    print('YES')
else:
    print('NO')
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
(lambda x: print('Yes') if x[1] - x[0] == x[2] - x[1]  else print('No'))(list(map(int,input().split())))

Failing test case input:
-1 -3 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
(lambda x: print('YES') if x[1] - x[0] == x[2] - x[1]  else print('NO'))(list(map(int,input().split())))

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c =map(int,input().split())
print(["YES","NO"][a-b != c-b])

Failing test case input:
1 -1 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c =map(int,input().split())
print(["YES","NO"][b-a != c-b])

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = list(map(int, input().split()))
if b-a == c-b:
  print("Yes")
else:
  print("No")

Failing test case input:
3 -2 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = list(map(int, input().split()))
if b-a == c-b:
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int, input().split())
if b-a==c-b:
	print('YES')
else:
	print('No')

Failing test case input:
-2 -1 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c = map(int, input().split())
if b-a==c-b:
	print('YES')
else:
	print('NO')

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c=map(int, input().split())     
print("Yes" if b-a==c-b else "No")

Failing test case input:
-1 -3 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int, input().split())     
print("YES" if b-a==c-b else "NO")

Problem: p03759
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    a, b, c = map(int, input().split())
    if b - a == c - a:
        print("YES")
    else:
        print("NO")
    

if __name__ == "__main__":
    main()


Failing test case input:
-2 -1 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    a, b, c = map(int, input().split())
    if b - a == c - b:
        print("YES")
    else:
        print("NO")
    

if __name__ == "__main__":
    main()

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print("YNEOS"[b-a!=c-b])

Failing test case input:
-2 -2 -1

Expected output:
NO


Actual output:
N


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print("YNEOS"[b-a!=c-b::2])

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if (b-c)==(c-b):
  print('YES')
else:
  print('NO')

Failing test case input:
3 -1 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if b-a==c-b:
  print('YES')
else:
  print('NO')
Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c = map(int, input().split())

if(b-a == c-b):
  print("Yes")
else:
  print("No")

Failing test case input:
-2 -3 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if b - a == c - b:
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input().split()
if int(a[2])-int(a[1]) == int(a[1])-int(a[0]):
    print("Yes")
else:
    print("No")

Failing test case input:
-1 -3 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = input().split()
if int(a[2])-int(a[1]) == int(a[1])-int(a[0]):
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
if b-a == c-a:
    print('YES')
else:
    print('NO') 

Failing test case input:
2 4 6

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
if b-a == c-b:
    print('YES')
else:
    print('NO')

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


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

if b - a == c - b:
    print('Yes')
else:
    print('No')


Failing test case input:
1 3 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):


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

if b - a == c - b:
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if (b-a) == (c-b):
    print('Yes')
else:
    print('No')


Failing test case input:
-1 -3 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if (b-a) == (c-b):
    print('YES')
else:
    print('NO')

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

a, b, c = map(int, open(0).read().split())
print("YES" if abs(b-a) == abs(c-b) else "NO")

Failing test case input:
-1 -2 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):

a, b, c = map(int, open(0).read().split())
print("YES" if (b-a) == (c-b) else "NO")

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

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


if b-a == c-b:
    print('Yes')
else:
    print('No')

Failing test case input:
3 -1 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):

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


if b-a == c-b:
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print('%s' % 'Yes' if b-a == c-b else 'No')

Failing test case input:
-2 -4 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print('%s' % 'YES' if b-a == c-b else 'NO')
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if a+c==2*b:
  print("Yes")
else:
  print("No")


Failing test case input:
-2 -3 -4

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if a+c==2*b:
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
[a,b,c]=[int(i) for i in input().split()]
if abs(b-a)==abs(c-b):
    print("YES")
else:
    print("NO")


Failing test case input:
0 -3 0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
[a,b,c]=[int(i) for i in input().split()]
if b-a==c-b:
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print("YNEOS"[(abs(b-a)!=abs(c-b))::2])

Failing test case input:
1 10 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print("YNEOS"[(c-b!=b-a)::2])

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print("YES" if a-b==b-c else "No")

Failing test case input:
0 3 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print("YES" if b-a==c-b else "NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print("YES")if b-a==c-b else print("YES")

Failing test case input:
-2 -3 -2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print("YES") if b-a==c-b else print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if b - a == c - b:
    print("Yes")
else:
    print("No")


Failing test case input:
-2 0 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if b - a == c - b:
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int, input().split())
if b-a==c-b:
  print("Yes")
else:
  print("No")

Failing test case input:
4 -1 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int, input().split())
if b-a==c-b:
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

x = sys.stdin.readline().strip().split(" ")

if int(x[1])-int(x[0]) is int(x[2])-int(x[1]):
    print("Yes")
else:
    print("No")


Failing test case input:
1 3 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
import sys

x = sys.stdin.readline().strip().split(" ")

if int(x[1])-int(x[0]) == int(x[2])-int(x[1]):
    print("YES")
else:
    print("NO")
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print("Yes" if b-a == c-b else "No")

Failing test case input:
-1 -2 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print("YES" if b-a == c-b else "NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
if abs(a-b) == abs(b-c):
    print('YES')
else:
    print('NO')
        


Failing test case input:
-1 -6 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
if b-a == c-b:
    print('YES')
else:
    print('NO')

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









a, b, c = map(int, input().split(maxsplit=3))



pillar_ba = b - a

pillar_cb = c - b




if pillar_ba == pillar_cb:
    answer = "Yes"
else:
    answer = "No"


print(answer)


Failing test case input:
1 2 -3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):









a, b, c = map(int, input().split(maxsplit=3))



pillar_ba = b - a

pillar_cb = c - b




if pillar_ba == pillar_cb:
    answer = "YES"
else:
    answer = "NO"


print(answer)

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c = map(int,input().split())
if b-a == c-a:
    print('YES')
else:
    print('NO')

Failing test case input:
2 1 0

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
if b-a == c-b:
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if b - a and c - b:
    print("YES")
else:
    print("NO")

Failing test case input:
1 -2 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if b - a == c - b:
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c = map(int,input().split())
if b-a == c-a:
  print('YES')
else:
  print('NO')

Failing test case input:
3 2 1

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
if b-a == c-b:
  print('YES')
else:
  print('NO')

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

a, b, c = map(int, open(0).read().split())
print("YES" if abs(a-b) == abs(c-b) else "NO")

Failing test case input:
2 4 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):

a, b, c = map(int, open(0).read().split())
print("YES" if (b-a) == (c-b) else "NO")

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c = map(int,list(input().split()))
if b-a == c-b:
    print('Yes')
else:
    print('No')


Failing test case input:
2 -1 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c = map(int,list(input().split()))
if b-a == c-b:
    print('YES')
else:
    print('NO')
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(map(int, input().split()))

a=l[0]
b=l[1]
c=l[2]

A=b-a
B=c-b

if A==B:
    print('Yes')
else:
    print('No')

Failing test case input:
-2 -3 -4

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
 
a=l[0]
b=l[1]
c=l[2]
 
A=b-a
B=c-b
 
if A==B:
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if a - b == b - c:
    print("Yes")
else:
    print("No")


Failing test case input:
4 -2 -3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if b - a == c - b:
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if b - a == c - b:
    print("Yes")
else:
    print("No")


Failing test case input:
0 3 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if b - a == c - b:
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if b-a == c-a:
  print("YES")
else:
  print("NO")

Failing test case input:
2 1 0

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if b-a == c-b:
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
print('YES' if a<=c and abs(a-b) == abs(b-c) else 'NO')

Failing test case input:
-2 -3 -2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
print('YES' if b-a == c-b else 'NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input().split()
print("YES") if abs(int(a[0]) - int(a[1])) == abs(int(a[1]) - int(a[2])) else print("NO")

Failing test case input:
1 -1 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a = input().split()
print("NO") if (int(a[1]) - int(a[0])) != (int(a[2]) - int(a[1])) else print("YES")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if (b - a == c - b):
    print('Yes')
else:
    print('No')


Failing test case input:
4 -2 -6

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if (b - a == c - b):
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print("YES" if b-a==c-a else "NO")

Failing test case input:
-2 -3 -4

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print("YES" if b-a==c-b else "NO")
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print('Yes' if b - a == c - b else 'No')

Failing test case input:
2 8 6

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print('YES' if (b - a) == (c - b) else 'NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = list(map(int, input().split()))
if num[1]-num[0] == num[2]-num[1]:
	print('Yes')
else:
	print('No')


Failing test case input:
-2 -3 -4

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
num = list(map(int, input().split()))
if num[1]-num[0] == num[2]-num[1]:
	print('YES')
else:
	print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int,input().split())
if b - a == c - a:
  print("YES")
else:
  print("NO")

Failing test case input:
-2 -1 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())
if b - a == c - b:
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if b - c == c - b:
  print('YES')
else:
  print('NO')

Failing test case input:
0 -2 -2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
 
if b - a == c - b:
  print('YES')
else:
  print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
if abs(a-b) == abs(b-c):
  print("YES")
else:
  print("NO")

Failing test case input:
2 4 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
if b-a == c-b:
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if abs(a-b) == abs(b-c):
    print('Yes')
else:
    print('No')

Failing test case input:
1 -1 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if b-a == c-b:
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int,input().split())
print('YES') if a == b == c else print('NO')


Failing test case input:
2 1 0

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())
print('YES') if b - a == c - b else print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print("YES" if a < b < c else "NO")

Failing test case input:
-1 -1 -1

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print("YES" if b - a == c - b else "NO")
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a ,b,c= map(int, input().split())
if b - a == c-b:
    print("Yes")
else:print("NO")

Failing test case input:
3 2 1

Expected output:
YES

Actual output:
Yes


Fixed submission (verdict: Accepted):
a ,b,c= map(int, input().split())
if b - a == c-b:
    print("YES")
else:print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print('Yes' if b-a == c-b else 'No')

Failing test case input:
-1 -3 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print('YES' if b-a == c-b else 'NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print('YES') if c-b==b-a else print('No')

Failing test case input:
2 -2 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print('YES') if c-b==b-a else print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())

print(('No','Yes')[(b-a)==(c-b)])


Failing test case input:
-2 -3 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())

print(('NO','YES')[(b-a)==(c-b)])

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if abs(b-a) == abs(c-b):
  print("Yes")
else:
  print("No")

Failing test case input:
1 10 1

Expected output:
NO


Actual output:
Yes


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if b-a == c-b:
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int, input().split())
print('YES' if b-a==c-b else 'No')

Failing test case input:
1 8 6

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int, input().split())
print('YES' if b-a==c-b else 'NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print("Yes" if b-a==c-b else "No")

Failing test case input:
0 2 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print("YES" if b-a==c-b else "NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if int((a+c)/2) == b:
    print("YES")
else:
    print("NO")

Failing test case input:
-2 -1 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if b-a == c - b:
    print("YES")
else:
    print("NO")
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
import sys

def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])
c = int(arr_data[0][2])


print("Yes" if b-a == c-b else "No")

Failing test case input:
-2 -6 -4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
import math
import sys

def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])
c = int(arr_data[0][2])


print("YES" if b-a == c-b else "NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if a==b==c:
    print('YES')
else:
    print('NO')

Failing test case input:
2 4 6

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if b-a==c-b:
    print('YES')
else:
    print(('NO'))

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if(abs(a-b)==abs(b-c)):
    print("YES")
else:
    print("NO")

Failing test case input:
2 0 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if(b-a==c-b):
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = [int(i) for i in input().split()]
 
if a-b ==  c - b :
	print('YES')
else:
	print('NO')

Failing test case input:
1 10 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c = [int(i) for i in input().split()]
 
if (b-a)==(c-b):
	print('YES')
else:
	print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if abs(b - a) == abs(c - b):
    print("YES")
else:
    print("NO")


Failing test case input:
0 -3 0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if b - a == c - b:
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split());print('YNEOS'[a+c!=b::2])

Failing test case input:
-2 -6 -4

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split());print('YNEOS'[b-a!=c-b::2])
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int, input().split())

A = b - a
B = c - b

if A==B:
    print("Yes")
else :
    print("No")

Failing test case input:
1 0 -1

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
a,b,c = map(int, input().split())

A = b - a
B = c - b

if A==B:
    print("YES")
else :
    print("NO")

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


if __name__ == '__main__':
    a,b,c = map(int,input().split())
    if b-a == c-b:
        print("Yes")
    else:
        print("No")

Failing test case input:
4 -2 -6

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):


if __name__ == '__main__':
    a,b,c = map(int,input().split())
    if b-a == c-b:
        print("YES")
    else:
        print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=input().split()
a1=int(a)
b1=int(b)
c1=int(c)
d=b1-a1
e=c1-b1
if d==e:
	print('yes')
else :
	print('no')

Failing test case input:
-1 -3 0

Expected output:
NO


Actual output:
no


Fixed submission (verdict: Accepted):
a,b,c=input().split()
a1=int(a)
b1=int(b)
c1=int(c)
d=b1-a1
e=c1-b1
if d==e:
	print('YES')
else :
	print('NO')

Problem: p03759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if b-a == c-b:
  print("Yes")
else:
  print("No")

Failing test case input:
3 2 1

Expected output:
YES

Actual output:
Yes


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if b-a == c-b:
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
if abs(b - a) == abs(c - b):
    print('YES')
else:
    print('NO')

Failing test case input:
1 10 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
if b - a == c - b:
    print('YES')
else:
    print('NO')

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

n=[int(i) for i in input().split()]
if(abs(n[1]-n[0])==abs(n[2]-n[1])):
  print("YES")
else:
  print("NO")

Failing test case input:
1 -1 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):

n=[int(i) for i in input().split()]
if(n[1]-n[0]==n[2]-n[1]):
  print("YES")
else:
  print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c=map(int, input().split())
if b-a==c-b:
    print('Yes')
else:
    print('No')    

Failing test case input:
0 -3 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c=map(int, input().split())
if b-a==c-b:
    print('YES')
else:
    print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split());print('YNeos'[b-a!=c-b::2])

Failing test case input:
3 -2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split());print('YNEOS'[b-a!=c-b::2])
Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if 2 * b == a + c:
    print("Yes")
else:
    print("No")

Failing test case input:
4 -1 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if 2 * b == a + c:
    print("YES")
else:
    print("NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = input().split()
l.sort()

a = l[0]
b = l[1]
c = l[2]

x = int(b) - int(a)
y = int(c) - int(b)

if x == y:
	print('YES')
else:
	print('NO')

Failing test case input:
-2 -6 -4

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
l = input().split()

a = l[0]
b = l[1]
c = l[2]

x = int(b) - int(a)
y = int(c) - int(b)

if x == y:
	print('YES')
else:
	print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if abs(b-a)==abs(c-b):
  print('YES')
else:
  print('NO')

Failing test case input:
0 2 0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if b-a==c-b:
  print('YES')
else:
  print('NO')

Problem: p03759
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if b-c == c-b:
  print('YES')
print('NO')

Failing test case input:
-1 -1 -1

Expected output:
YES


Actual output:
YES
NO


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if b-a == c-b:
  print('YES')
  exit()
print('NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
print( "Yes" if b - a == c -b else "No")

Failing test case input:
1 2 -5

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c, = map(int,input().split())
print("YES" if b - a == c -b else "NO")

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print('YES' if abs(a-b)==abs(b-c) else 'NO')

Failing test case input:
-1 -6 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print('YES' if a-b==b-c else 'NO')

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
print('YNEOS'[a-b!=c-b::2])

Failing test case input:
2 4 6

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
print('YNEOS'[a-b!=b-c::2])

Problem: p03759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if (b-a)==(c-b):
  print("Yes")
else:
  print("No")

Failing test case input:
2 5 6

Expected output:
NO

Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if (b-a)==(c-b):
  print("YES")
else:
  print("NO")