시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 512 MB 5 5 5 100.000%

문제

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.

예제 입력

8 2
1 6
7 6

예제 출력

YES

힌트