题目描述
Problem Description
Takahashi bought two displays. One display has a height of $H_1$ mm and a width of $W_1$ mm, and the other has a height of $H_2$ mm and a width of $W_2$ mm.
The displays are to be placed side by side on a desk. Each display can either be placed as is or rotated $90$ degrees.
Determine if it is possible to place the two displays side by side on the desk with the same height.
Input Format
The input is given from the standard input in the following format:
$H_1$ $W_1$ $H_2$ $W_2$
Output Format
Output YES if it is possible to align the height, otherwise output NO in one line.
Sample Input and Output
Sample Input #1
1080 1920
1080 1920
Sample Output #1
YES
Sample Input #2
1080 1920
1920 1080
Sample Output #2
YES
Sample Input #3
334 668
668 1002
Sample Output #3
YES
Sample Input #4
100 200
300 150
Sample Output #4
NO
Sample Input #5
120 120
240 240
Sample Output #5
NO
Notes/Hints
Constraints
- $1 \leq H_1, W_1, H_2, W_2 \leq 10^5$
- $H_1, W_1, H_2, W_2$ are all integers.
Sample Explanation 1
Both displays can be placed without rotation, aligning their heights at $1080$ mm.
Sample Explanation 2
For example, if the second display is rotated $90$ degrees, its height becomes $1080$ mm, aligning with the first display's height.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分