#P455. 【例83.1】 奥利凡德
【例83.1】 奥利凡德
Description
Harry Potter's wand was destroyed in his battle with Voldemort, so he decided to buy a new one at Ollivander's Wand Shop. In the shop, he saw wands and boxes. Each wand has a length of , and each box has a length of . A wand of length can be placed in a box of length only if .
Harry wants to know if he can place all the wands in the boxes, with each box containing exactly one wand. Please help him solve this problem.
Input Format
The first line contains an integer (), representing the number of wands.
The second line contains integers, representing the length of each wand .
The third line contains integers, representing the length of each box .
Output Format
If Harry can place all the wands in the boxes, output "", otherwise output "" (Croatian for "yes" and "no").
Sample
3
7 9 5
6 13 10DA