#00008F

Boxes

You know the height, the width and the length of two boxes. You have to check if one box can be put inside the other one. In other words, can you rotate one of the boxes so that it can be put into the other one.


Input You should read the input from the standard input. From the first line read three integers d1, s1 i v1 - height, width and length of the first box. From the second line read another three integers d2, s2 i v2, height, width and length of the second box. All dimensions are less than 1000.

Output To the standard output write "DA" (without quotes), if one box can be put into the other one. Otherwise output "NE"inače.


Input:
5 9 2
3 6 10

Output:
DA


Input:
3 4 5
3 4 5

Output:
NE
(The lengths have to be strictly smaller in order to fit a box into another)


Input:
3 4 5
2 3 4

Output:
DA

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.