100 atcoder#ABC062A. [ABC062A] Grouping
[ABC062A] Grouping
Score : points
Problem Statement
Based on some criterion, Snuke divided the integers from through into three groups as shown in the figure below. Given two integers and (), determine whether they belong to the same group.
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
If and belong to the same group, print Yes
; otherwise, print No
.
1 3
Yes
2 4
No