atcoder#ABC240A. [ABC240A] Edge Checker
[ABC240A] Edge Checker
Score : points
Problem Statement
In the figure shown in the image below, are the points numbered and directly connected by a line segment?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
If the points numbered and are directly connected by a line segment, print Yes
; otherwise, print No
.
The judge is case-sensitive: be sure to print uppercase and lowercase letters correctly.
4 5
Yes
In the figure shown in the Problem Statement, the points numbered and are directly connected by a line segment.
Thus, Yes
should be printed.
3 5
No
In the figure shown in the Problem Statement, the points numbered and are not directly connected by a line segment.
Thus, No
should be printed.
1 10
Yes