102400: [AtCoder]ABC240 A - Edge Checker

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

In the figure shown in the image below, are the points numbered $a$ and $b$ directly connected by a line segment?

Constraints

  • $1 \leq a \lt b \leq 10$
  • $a$ and $b$ are integers.

Input

Input is given from Standard Input in the following format:

$a$ $b$

Output

If the points numbered $a$ and $b$ 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.


Sample Input 1

4 5

Sample Output 1

Yes

In the figure shown in the Problem Statement, the points numbered $4$ and $5$ are directly connected by a line segment.
Thus, Yes should be printed.


Sample Input 2

3 5

Sample Output 2

No

In the figure shown in the Problem Statement, the points numbered $3$ and $5$ are not directly connected by a line segment.
Thus, No should be printed.


Sample Input 3

1 10

Sample Output 3

Yes

Input

题意翻译

给定如上图的环并给定 $a,b$,问 $a,b$ 是否连接。 Translated by ShanCreeper.

Output

分数:100分

问题描述

在下面图像中所示的图形中,点数为$a$和$b$的点之间是否直接由一条线段连接?

约束条件

  • $1 \leq a \lt b \leq 10$
  • $a$和$b$为整数。

输入

从标准输入以以下格式接收输入:

$a$ $b$

输出

如果点数为$a$和$b$的点之间直接由一条线段连接,则打印Yes;否则,打印No
裁判是区分大小写的:请确保正确打印大小写字母。


样例输入1

4 5

样例输出1

Yes

在问题描述中所示的图形中,点数为$4$和$5$的点之间直接由一条线段连接。
因此,应打印Yes


样例输入2

3 5

样例输出2

No

在问题描述中所示的图形中,点数为$3$和$5$的点之间没有直接由一条线段连接。
因此,应打印No


样例输入3

1 10

样例输出3

Yes

加入题单

上一题 下一题 算法标签: