New cabinet#76

New cabinet

1 second
64 megabytes
Very easy

A rectangular door has dimensions and , and a cabinet is shaped as a rectangular parallelepiped with dimensions , , and . Is it possible to carry the cabinet through the door if it can be carried so that each edge of the cabinet is parallel or perpendicular to the sides of the door?

Input

Five real numbers: , , , , (0 < a, b, x, y, z < 10).

Output

Print 1 if the cabinet can be freely carried through the door, otherwise print 0.

Examples

Example 1

Loading
Loading