cswork / OAOpen practice workspace

ExpediaOA #3

Bot Reach Coordinates

Estimated HardJudge-ready

Topics (AI-labelled)Bits & Math

From (x,y) you can only move to (x+y,y) or (x,x+y). Determine whether the target can be reached from the start.

Input

A single line with four positive integers sx sy tx ty, the start and target coordinates; this site adds 1≤sx,sy,tx,ty≤1000000000.

Output

Output Yes if the target is reachable, otherwise output No.

Example 1

Input:

1 1 3 5

Output:

Yes

Example 2

Input:

2 1 1 2

Output:

No

Example 3

Input:

1 1 2 2

Output:

No

Editorial

Loading solution…