Triangular Papyrus
During an excavation, archaeologists uncovered an unusual fragment of ancient papyrus shaped like a triangle. Due to its age, the papyrus is extremely fragile, so it must be placed in a protective case for preservation and transport. Unfortunately, only a flat square box is available.
We need to determine if the papyrus can fit inside this box without any deformation, such as folding or rolling, as it might disintegrate.
Input
The input consists of a single line containing four positive integers: a, b, c, and l. The first three integers represent the lengths of the sides of the triangular papyrus, and the fourth integer is the side length of the flat square box. All measurements are no greater than 100. It is guaranteed that the triangle is not degenerate.
Output
Output YES if the papyrus can fit inside the box, and NO otherwise. The papyrus is allowed to touch the sides of the box.