function Main (input) {
  const inputs = input.split(/\s/g).map((num) => parseInt(num));
  const maxDistance = inputs[3];
  const distances = inputs.slice(0, 3);
  const calcs = [
    Math.abs(distances[0] - distances[1]),
    Math.abs(distances[1] - distances[2]),
  ];
  const isEnable1 = Math.abs(distances[0] - distances[2]) <= maxDistance;
  const isEnable2 = calcs.every((distance) => distance <= maxDistance);
  const isEnable = isEnable1 || isEnable2;
  
  console.log('%s', isEnable ? 'Yes' : 'No');
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
