Square#4879

Square

1 second
64 megabytes
Hard

Three rectangles are given.

It is necessary to determine whether there exists a square that can be composed from the given rectangles. The rectangles must not overlap, but they can be moved around without changing their initial orientation.

Input

The input file contains three lines, each describing one rectangle. The description of a rectangle consists of two integers and separated by a space (0 < w, h \leq 10^6) — its width and height, respectively.

Output

Output YES if such a square exists, otherwise output NO.

Examples

Example 1

Loading
Loading