100 atcoder#ABC201A. [ABC201A] Tiny Arithmetic Sequence
[ABC201A] Tiny Arithmetic Sequence
Score : points
Problem Statement
You are given a sequence of three numbers: .
Is it possible to rearrange the elements of into an arithmetic sequence?
In other words, is it possible to rearrange the elements of so that ?
Constrains
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If it is possible to rearrange the elements of into an arithmetic sequence, print Yes
; otherwise, print No
.
5 1 3
Yes
We can rearrange them into an arithmetic sequence by, for example, making it .
1 4 3
No
There is no way to rearrange them into an arithmetic sequence.
5 5 5
Yes
All elements of may be equal, or may be an arithmetic sequence already.