시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB263827437.374%

문제

Inspired by a Mondrian painting you saw, you want to make a three-pane window out of three colored rectangles of glass. You are given the sizes of the three panes of glass. Can you arrange them into a square? You may rotate the panes, but the panes may not overlap.

입력

The input consists of three lines. Each of the three lines gives the length and height of a pane of glass.

It is guaranteed that the lengths and heights are integers between 1 and 100, inclusive.

출력

Print, on a single line, YES if the panes of glass can be combined to form a square; otherwise, print NO.

예제 입력 1

8 2
1 6
7 6

예제 출력 1

YES