You are given the heights of three poles positioned evenly along a line. The heights of the poles from left to right are represented by the integers a, b, and c (in meters).
An arrangement of the poles is called beautiful if the tops of the poles lie on the same straight line. This condition can be expressed mathematically as:
[ b - a = c - b ]
Your task is to determine whether the arrangement of the poles is beautiful.
Input Format
A single line containing three integers: a, b, and c (0 ≤ a, b, c ≤ 10^9).
Output Format
Print YES if the arrangement of the poles is beautiful.
Print NO if the arrangement of the poles is not beautiful.
Examples
Example 1:
Input:
text
1 2 3
Output:
text
YES
Example 2:
Input:
text
1 3 2
Output:
text
NO
Example 3:
Input:
text
5 10 15
Output:
text
YES
Solution Location
Please place your solution in the /app/ directory of your project.
Important: place your implementation at /app/solution.py so the verifier can run it.