Problems
New case
New case
The size of the rectangular door \textbf{a}, \textbf{b} are given, and the size of the cabinet, which is shaped like a cuboid \textbf{x}, \textbf{y}, \textbf{z}. Is it possible to carry through the closet door, if allowed to carry it so that each edge of the cabinet was parallel or perpendicular to each side of the door.
\InputFile
Five real numbers \textbf{a, b, x, y, z (0 }<\textbf{ a, b, x, y, z }< \textbf{10)}.
\OutputFile
Print \textbf{1}, if the cabinet can be free carried through the door, and \textbf{0} otherwise.
Input example #1
5 7 4 6 8
Output example #1
1