Skip to content
Snippets Groups Projects
11.py 115 B
Newer Older
hacker717's avatar
hacker717 committed
arr = [int(i) for i in input()]
arr.sort()
if arr[0] + arr[2] == arr[1] * 2:
    print("YES")
else:
    print("NO")