#C9620. Uncommon Elements

    ID: 53734 Type: Default 1000ms 256MiB

Uncommon Elements

Uncommon Elements

You are given two lists of elements. Your task is to find and output a sorted list of elements that appear in only one of the two lists (i.e. the elements that are not common to both lists).

The comparison should consider the exact value of the elements. The lists may contain numbers or strings. In case an element appears in both lists, it should not be in the result. The final result must be sorted in ascending order. Note that if the input lists contain mixed types, you can assume that the common elements will be of the same type so that sorting can be done without any issues.

Example:

Input:
1 2 3 4
3 4 5 6

Output: 1 2 5 6

</p>

inputFormat

The input consists of two lines. The first line contains the elements of the first list separated by spaces, and the second line contains the elements of the second list separated by spaces. If a list is empty, its corresponding line will be an empty string.

outputFormat

Output the sorted uncommon elements in a single line separated by a single space. If there are no uncommon elements, output an empty line.

## sample
1 2 3 4
3 4 5 6
1 2 5 6