LogiQuest

464. Uncommon Words From Two Sentences

EasyHash Map

A word is uncommon if it appears exactly once across both sentences combined. Print the uncommon words in alphabetical order, or NONE.

Input format

Line 1: sentence 1 Line 2: sentence 2

Output format

The words or NONE.

Example 1

Input

this apple is sweet
this apple is sour

Output

sour sweet

Example 2

Input

apple apple
banana

Output

banana

Constraints

Words are lowercase, separated by single spaces.

Read input from standard input and print the answer to standard output. Your code is judged against 3 test cases, most of them hidden.

Loading the MyLoginn IDE…