Problem:


Score : 100 points

Problem Statement

Three poles stand evenly spaced along a line. Their heights are a, b and c meters, from left to right.
We will call the arrangement of the poles beautiful if the tops of the poles lie on the same line, that is, b-a = c-b.

Determine whether the arrangement of the poles is beautiful.

Constraints

1 \leq a,b,c \leq 100

a, b and c are integers.

Input

Input is given from Standard Input in the following format:

a b c

Output

Print YES if the arrangement of the poles is beautiful; print NO otherwise.

Sample Input 1

2 4 6

Sample Output 1

YES

Since 4-2 = 6-4, this arrangement of poles is beautiful.

Sample Input 2

2 5 6

Sample Output 2

NO

Since 5-2 \neq 6-5, this arrangement of poles is not beautiful.

Sample Input 3

3 2 1

Sample Output 3

YES

Since 1-2 = 2-3, this arrangement of poles is beautiful.



Sample input:
2 4 6


Sample output:
YES

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input().split()
if int(a[2])-int(a[1]) == int(a[1])-int(a[0]):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def main():
    t = list(map(int, input().split()))
    if t[1] - t[0] == t[2] - t[1]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int,input().split())
print('YES') if a == b == c else print('NO')

Submission status: Wrong Answer

Solution code:
# A - ι⊥l
# https://atcoder.jp/contests/abc058/tasks/abc058_a

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

result = 'No'

if b - a == c - b:
    result = 'Yes'
elif a - b == b - c:
    result = 'Yes'

print(result)

Submission status: Wrong Answer

Solution code:
# A - ι⊥l

# b-a = c-bを満たしていればYes, そうでなければNoを出力する


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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# 入力
a, b, c = map(int, input().split())

# b-a=c-bならYes、違うならNo
if b - a == c - b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
if(l[1]-l[0]==l[2]-l[1]):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# 各数値の取得
a,b,c = map(int,input().split())

# 計算結果に基づいてメッセージを出力
if b - a == b - c:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
S_list = list(map(int,input().split()))

if  S_list[1] - S_list[0] == S_list[2] - S_list[1]:
    result = "YES"
else:
    result = "No"
print(result)

Submission status: Wrong Answer

Solution code:
# 058a

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

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

Submission status: Wrong Answer

Solution code:
# 3本の柱が等間隔に並んでいます。柱の高さは左から順に
# a メートル,b メートル,c メートル です。
# 柱の先端が同一直線上に並んでいる時、つまり
# b − a = c − b を満たしているとき、
# この柱の並び方を美しいと呼びます。
# 柱の並び方が美しいかどうかを判定してください。

# 標準入力から a, b, c を取得する
a, b, c = map(int, input().split())

# 柱の並びが美しいかどうかを判定して結果を出力する

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

Submission status: Wrong Answer

Solution code:
# 3本の柱が等間隔に並んでいます。柱の高さは左から順に
# a メートル,b メートル,c メートル です。
# 柱の先端が同一直線上に並んでいる時、つまり
# b − a = c − b を満たしているとき、
# この柱の並び方を美しいと呼びます。
# 柱の並び方が美しいかどうかを判定してください。

# 標準入力から a, b, c を取得する
a, b, c = map(int, input().split())

# 柱の並びが美しいかどうかを判定して結果を出力する

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

Submission status: Wrong Answer

Solution code:
# 3本の柱が等間隔に並んでいます。柱の高さは左から順に
# a メートル,b メートル,c メートル です。
# 柱の先端が同一直線上に並んでいる時、つまり
# b − a = c − b を満たしているとき、
# この柱の並び方を美しいと呼びます。
# 柱の並び方が美しいかどうかを判定してください。

# 標準入力から a, b, c を取得する
a, b, c = map(int, input().split())

# 柱の並びが美しいかどうかを判定して結果を出力する

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

Submission status: Wrong Answer

Solution code:
# 3本の柱が等間隔に並んでいます。柱の高さは左から順に
# a メートル,b メートル,c メートル です。
# 柱の先端が同一直線上に並んでいる時、つまり
# b − a = c − b を満たしているとき、
# この柱の並び方を美しいと呼びます。
# 柱の並び方が美しいかどうかを判定してください。

# 標準入力から a, b, c を取得する
a, b, c = map(int, input().split())

# 柱の並びが美しいかどうかを判定して結果を出力する
result_ba = abs(b - a)   # b - a 結果格納用
result_cb = abs(c - b)   # c - b 結果格納用

if result_ba == result_cb:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# 3本の柱が等間隔に並んでいます。柱の高さは左から順に
# a メートル,b メートル,c メートル です。
# 柱の先端が同一直線上に並んでいる時、つまり
# b − a = c − b を満たしているとき、
# この柱の並び方を美しいと呼びます。
# 柱の並び方が美しいかどうかを判定してください。

# 標準入力から a, b, c を取得する
a, b, c = map(int, input().split())

# 柱の並びが美しいかどうかを判定して結果を出力する
result_ba = b - a   # b - a 結果格納用
result_cb = c - b   # c - b 結果格納用

if result_ba == result_cb:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

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

ba = b - a
cb = c - b

if ba == cb:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print('YES' if b - a and c - b else 'NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 柱の高さ（aメートル,bメートル,cメートル）を整数で入力
a,b,c = map(int,input().split())
# b-aとc-bが同じなら美しい（Yes）、そうでなければNo
if  b - a == c - b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# 入力
a, b, c = map(int, input().split())

# 処理&出力
if b-a == c-b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# A - ι⊥l

# 3本の柱が等間隔に並んでいる
# 柱の高さは左から順に a[m] b[m] c[m]
# 柱の先端が同一線上に並んでいるとき
# ⇔ b - a = c - b
# 美しいな！

# a b c を標準入力から得る
a, b, c = map(int, input().split(maxsplit=3))
# print(a, b, c)

# b - a を計算
pillar_ba = b - a
# c - b を計算
pillar_cb = c - b
# print(pillar_ba, pillar_cb)

# pillar_ba ⇔ pillar_cb の時　Yes
# そうでないとき　No
if pillar_ba == pillar_cb:
    answer = "Yes"
else:
    answer = "No"

# 結果を出力
print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c =map(int,input().split())
print(["YES","NO"][a-b != c-b])

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print(["NO","YES"][2*b-a-c!=0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if abs(a-b) == abs(b-c):
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if abs(a-b)==abs(c-b):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if b*2==a+c:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

d1 = b - a
d2 = c - b

if (d1 == d2):
    print("Yes")

else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,list(input().split()))
if b-a == c-b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print("YES")if b-a==c-b else print("YES")

Submission status: Wrong Answer

Solution code:
#
from collections import Counter

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

Submission status: Wrong Answer

Solution code:
#
from collections import Counter

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print('YES' if abs(a-b) == abs(b-c) else 'NO')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if abs(b-a) == abs(c-b):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split());print('YNEOS'[a+c!=b::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

A = [a,b,c]
A.sort()
if A[2] - A[1] == A[1] - A[0]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = list(map(int, input().split()))
if b-a == c-b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if  abs(b-a)==abs(c-b):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a = 3
b = 2
c = 1
if b - a == c - b:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if abs(b-a)==abs(b-c):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
def main():
    a,b,c = map(int, input().split())
    if b - a == c - b:
        print('Yes')
    else:
        print('No')
main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
array = [a,b,c]
ans = array.copy()
ans.sort()
if ans == array:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if a-b==b-c:
    ans="Yes"
else:
    ans="No"
print(ans)

Submission status: Wrong Answer

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

A = b - a
B = c - b

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

Submission status: Wrong Answer

Solution code:
A,B,C = list(map(int,input().split()))
if abs(A-B) - abs(B-C) == 0:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C = list(map(int,input().split()))
if abs(A-B) == abs(B-C):
	print("YES")
	exit()
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C = list(map(int,input().split()))
if abs(A-B) == abs(B-C):
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C = list(map(int,input().split()))
if abs(A-B) == abs(B-C):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
print(s[0]+str((len(s)-2))+s[-1])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
ans = 'Yes' if b-a == c-b else 'No'
print(ans)

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
ans = 'Yes' if b-a == c-a else 'No'
print(ans)

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print("YES" if a < b < c else "NO")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print("YNEOS"[b-a!=c-b])

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
d, e, f = sorted([a, b, c])
print('YES' if a == d and b == e and c == f else 'NO')

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
if B-A==C-A:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if abs(a-b) == abs(b-c):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print("Yes" if a+c==2*b else "No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split());print("YNeos"[b-a!=c-b::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("YES")

Submission status: Wrong Answer

Solution code:
a,b,c = [int(i) for i in input().split()]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split());print('YNEOS'[a+c==2*b::2])

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if abs(b-a)==abs(c-b):
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if b-c == c-b:
  print('YES')
print('NO')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a==b and b==c:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#ABC058.A
a,b,c = map(int,input().split())
if abs(a-b)==abs(b-c) or abs(a-c)==abs(a-b) or abs(a-c)==abs(b-c):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N=input()
N=N.replace(' ','')
N=list(N)
if abs(int(N[1])-int(N[0]))==abs(int(N[2])-int(N[1])):
    print("YES")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
N=input()
N=N.replace(' ','')
N=list(N)
if (int(N[1])-int(N[0]))==(int(N[2])-int(N[1])):
    print("YES")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
print("Hello")
a,b,c = list(map(int, input().split()))

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

Submission status: Wrong Answer

Solution code:
a,b,c= map(int, input().split())
if ((a+c)//2==b):
 print('YES')
else:
 print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c=input().split()
if(int(a)<=100 and int(b)<=100 and int(c)<=100 and int(a)>=1 and int(b)>=1 and int(c)>=1):
    if(abs(int(b)-int(a)) == abs(int(c)-int(b))):
        print("YES")
    else:
        print("NO")
else:
    print("invalid range")

Submission status: Wrong Answer

Solution code:
a,b,c=input().split()
if(int(a)<=100 and int(b)<=100 and int(c)<=100 and int(a)>=1 and int(b)>=1 and int(c)>=1):
    if(abs(int(b)-int(a)) == abs(int(c)-int(b))):
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
a,b,c=input().split()
if(abs(int(b)-int(a)) == abs(int(c)-int(b))):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c= [int(i) for i in input().split()]

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

Submission status: Wrong Answer

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

x = b - a
y = c - b

if x is y:
  print("YES")
  
else:
  print("NO")

Submission status: Wrong Answer

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

x = b - a
y = c - b

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

Submission status: Wrong Answer

Solution code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, b, c = list(map(int, sys.stdin.readline().split()))
    print('Yes' if b - a == c - b else 'No')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a,b,c = list(map(int, input().split()))
print('YES' if b-a == c-b else 'No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())

if 2*B == A + C :
  print('Yes')
  
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int, input().split())
if abs(a-b) == abs(b-c):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
# A
a, b, c = map(int, input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = [int(x) for x in input().rstrip().split()]
if b-c == c-b:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
print('YNEOS'[a-b!=c-b::2])

Submission status: Wrong Answer

Solution code:
A, B, C = map(int,input().split())

if B - A == C - B:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = list(map(int, input().split()))
if b - a == c - b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print('YES' if b == int((a+c)/2) else 'NO')

Submission status: Wrong Answer

Solution code:
a, b, c = list(map(int, input().split()))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
print('YES') if abs(b-a) == abs(c-b) else print('NO')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print('YES' if abs(a-b)==abs(b-c) else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = [int(i) for i in input().split()]

if b == ((a+c)//2):
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if abs(a-b) == abs(b-c):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if abs(a-b) == abs(b-c):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=list(map(int, input().split()))
A.sort()
if A[0]+A[2]==A[1]:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if (a+c)//2 == b:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int, input().split())
if b-a==c-b:
  print("TES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = list(map(int,input().split()))
print("Yes" if b-a == c-b else "No")

Submission status: Wrong Answer

Solution code:
a,b,c = list(map(int, input().split()))
print("Yes" if b-a == c-b else "No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print("YNEOS"[(b!=(a+c)//2)::2])

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print("YNEOS"[(abs(b-a)!=abs(c-b))::2])

Submission status: Wrong Answer

Solution code:
import sys
import math
import random
import threading
import time
from functools import reduce

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

Submission status: Wrong Answer

Solution code:
import sys
import math
import random
import threading
import time
from functools import reduce

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

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

Submission status: Wrong Answer

Solution code:
#2019/10/03
a, b, c = map(int, open(0).read().split())
print("YES" if abs(b-a) == abs(c-b) else "NO")

Submission status: Wrong Answer

Solution code:
#2019/10/03
a, b, c = map(int, open(0).read().split())
print("YES" if abs(a-b) == abs(c-b) else "NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if b - a == c - b:
    print('YES')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

Solution code:
A, B, C = [int(n) for n in input().split()]
print('YES' if abs(A - B) == abs(C - B) else 'NO')

Submission status: Wrong Answer

Solution code:
A, B, C = [int(n) for n in input().split()]
print('YNEOS'[abs(A - B) != abs(C - B)::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
print("Yes" if abs(a-b) == abs(c-b) else "No")

Submission status: Wrong Answer

Solution code:
#print(" ",sep='',end='')
s=input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int, input().split())
print('YES' if b-a==c-b else 'No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if b-a == c-b:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, (input().split()))
print('YES' if abs(b-a) == abs(c-b) else 'NO')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print('YES' if abs(a-b)==abs(b-c) else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if int((a+c)/2) == b:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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