100 atcoder#ABC097A. [ABC097A] Colorful Transceivers

[ABC097A] Colorful Transceivers

Score : 100100 points

Problem Statement

Three people, A, B and C, are trying to communicate using transceivers. They are standing along a number line, and the coordinates of A, B and C are aa, bb and cc (in meters), respectively. Two people can directly communicate when the distance between them is at most dd meters. Determine if A and C can communicate, either directly or indirectly. Here, A and C can indirectly communicate when A and B can directly communicate and also B and C can directly communicate.

Constraints

  • 11 \leq a,b,ca,b,c \leq 100100
  • 11 \leq dd \leq 100100
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

aa bb cc dd

Output

If A and C can communicate, print Yes; if they cannot, print No.

4 7 9 3
Yes

A and B can directly communicate, and also B and C can directly communicate, so we should print Yes.

100 10 1 2
No

They cannot communicate in this case.

10 10 10 1
Yes

There can be multiple people at the same position.

1 100 2 10
Yes