Harry Potter has damaged his magic wand in a fight with Lord Voldemort. He has decided to get a new wand in Olivander's wand shop. On the floor of the shop, he saw
Help him solve this difficult problem.
Input Specification
The first line of input contains the positive integer
The second line contains
The third line contains
Output Specification
If Harry can place all the wands in boxes, output DA
(Croatian for yes), otherwise output NE
(Croatian for no).
Scoring
In test cases worth
Sample Input 1
3
7 9 5
6 13 10
Sample Output 1
DA
Sample Input 2
4
5 3 3 5
10 2 10 10
Sample Output 2
NE
Sample Input 3
4
5 2 3 2
3 8 3 3
Sample Output 3
DA
Comments