题目描述
Problem Description
Given a sequence of length $ 3 $, $ A=(A_1,A_2,A_3) $.
Can you rearrange $ A $ to form an arithmetic sequence?
That is, can you rearrange $ A $ so that $ A_3-A_2=A_2-A_1 $?
Input Format
The input is given from the standard input in the following format:
$ A_1 $ $ A_2 $ $ A_3 $
Output Format
Output Yes if $ A $ can be rearranged to form an arithmetic sequence, otherwise output No.
Sample Input and Output
Sample Input #1
5 1 3
Sample Output #1
Yes
Sample Input #2
1 4 3
Sample Output #2
No
Sample Input #3
5 5 5
Sample Output #3
Yes
Notes/Hints
Constraints
- $1 \leq A_i \leq 100$
- All inputs are integers
Sample Explanation 1
For example, rearranging to $ (1,3,5) $ forms an arithmetic sequence.
Sample Explanation 2
No matter how you rearrange $ A $, it cannot form an arithmetic sequence.
Sample Explanation 3
There are cases where all elements of $ A $ are equal or $ A $ is already an arithmetic sequence.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
5 1 3
样例输出
Yes