Bob has finally managed to get a few friends to tag along with him on his camping trip. He has packed all of his stuff neatly into a trunk, but he has trouble fitting the trunk into the trunk of his car. Can he fit the trunk into his car, or is his trunk too large for his trunk?
Bob's trunk is a rectangular prism, with dimensions of
Input Specification
The first line of input will contain three integers
The second and last line of input will contain the integers
Output Specification
A single character, either Y
if the trunk will fit, or N
if the trunk does not.
Sample Input 1
2 3 3
3 3 3
Sample Output 1
Y
Sample Input 2
2 3 4
4 2 2
Sample Output 2
N
Comments
https://dmoj.ca/problem/ccc07s2