Three poles stand evenly spaced along a line with heights given by the integers ( a ), ( b ), and ( c ) meters, from left to right. We consider the arrangement of the poles beautiful if the tops of the poles lie on the same line, which can be mathematically expressed as:
[ b - a = c - b ]
Your task is to determine whether the arrangement of the poles is beautiful.
Input Format
The input consists of three integers ( a ), ( b ), and ( c ) (1 ≤ ( a, b, c ) ≤ 1000), representing the heights of the three poles.
Output Format
Print "YES" if the arrangement of the poles is beautiful, and "NO" otherwise.
Examples
Example 1
Input:
text
3 5 7
Output:
text
YES
Example 2
Input:
text
2 4 6
Output:
text
YES
Example 3
Input:
text
1 2 3
Output:
text
NO
Task Implementation
You need to implement the solution in the /app/ directory.