atcoder#ABC285A. [ABC285A] Edge Checker 2
[ABC285A] Edge Checker 2
Score : points
Problem Statement
Determine if there is a segment that directly connects the points numbered and in the figure below.
Constraints
- and are integers.
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if there is a segment that directly connects the points numbered and ; print No
otherwise.
1 2
Yes
In the figure in the Problem Statement, there is a segment that directly connects the points numbered and , so Yes
should be printed.
2 8
No
In the figure in the Problem Statement, there is no segment that directly connects the points numbered and , so No
should be printed.
14 15
No