Numeros, the Artist, had two lists and , such that was a permutation of . Numeros was very proud of these lists. Unfortunately, while transporting them from one exhibition to another, some numbers were left out of . Can you find the missing numbers?
If a number occurs multiple times in the lists, you must ensure that the frequency of that number in both lists is the same. If that is not the case, then it is also a missing number.
You have to print all the missing numbers in ascending order.
Print each missing number once, even if it is missing multiple times.
The difference between maximum and minimum number in is less than or equal to .
There will be four lines of input:
- the size of the first list
This is followed by space-separated integers that make up the first list.
- the size of the second list
This is followed by space-separated integers that make up the second list.
is present in both arrays. Its frequency in is , while its frequency in is . Similarly, and occur twice in , but thrice in . So, these three numbers are our output. The rest of the numbers have thesame frequency in both lists.