349 传统题

[ABC485A] 同侧判定 (Same Side)

时间限制
2000ms
内存限制
1024MiB
登顶 / 尝试
1/ 1
难度
1
    上传者 标签AtCoderABC 485入门分支结构数学

[ABC485A] 同侧判定 (Same Side)

Score : 100100 points

Problem Statement

There is a road that runs straight east and west, and positions on the road are represented by coordinates whose positive direction is east.

Takahashi's house is at coordinate 00, the supermarket is at coordinate AA, and the station is at coordinate BB. Here, the coordinates of Takahashi's house, the supermarket, and the station are pairwise distinct.

Print Yes if the supermarket and the station are in the same direction from Takahashi's house, and No otherwise.

Constraints

  • −100≤A,B≤100-100 \leq A, B \leq 100

  • A≠0A \neq 0

  • B≠0B \neq 0

  • A≠BA \neq B

  • All input values are integers.

Input

The input is given from Standard Input in the following format:

$A$ $B$

Output

Print Yes or No according to the instructions in the problem statement.

Sample Input 1

40 -20

Sample Output 1

No

The supermarket and the station are in opposite directions from Takahashi's house.

Sample Input 2

-3 -5

Sample Output 2

Yes

Sample Input 3

9 19

Sample Output 3

Yes