9376: ABC201 —— A - Tiny Arithmetic Sequence
[Creator : ]
Description
You are given a sequence of three numbers: $A=(A_1,A_2,A_3)$.
Is it possible to rearrange the elements of $A$ into an arithmetic sequence?
In other words, is it possible to rearrange the elements of $A$ so that $A_3-A_2=A_2-A_1$?
Is it possible to rearrange the elements of $A$ into an arithmetic sequence?
In other words, is it possible to rearrange the elements of $A$ so that $A_3-A_2=A_2-A_1$?
Input
Input is given from Standard Input in the following format:
```
$A_1$ $A_2$ $A_3$
```
```
$A_1$ $A_2$ $A_3$
```
Output
If it is possible to rearrange the elements of $A$ into an arithmetic sequence, print `Yes`; otherwise, print `No`.
Constraints
- $1 \leq A_i \leq 100$
- All values in input are integers.
- All values in input are integers.
Sample 1 Input
5 1 3
Sample 1 Output
Yes
We can rearrange them into an arithmetic sequence by, for example, making it (1,3,5).
Sample 2 Input
1 4 3
Sample 2 Output
No
Sample 3 Input
5 5 5
Sample 3 Output
Yes