EasyRating 1000
Two Kangaroos
Kangaroo 1 starts at x1 and jumps v1 metres each step; kangaroo 2 starts at x2 and jumps v2. Both jump at the same time. Will they ever land on the same spot at the same time? Print YES or NO.
Input
Four integers x1 v1 x2 v2 (0 ≤ x1 < x2 ≤ 10⁴, 1 ≤ v ≤ 10⁴).
Output
YES or NO.
Sample 1
Input
0 3 4 2
Output
YES
Sample 2
Input
0 2 5 3
Output
NO
Output appears here