Two lowercase words are given. Print yes if one is a rearrangement of the other (an anagram), otherwise no.
Input
Two lowercase words, each on its own line, of length $1$ to $30$.
Output
Print yes or no.
Example 1
Input
abc bca
Output
yes
Example 2
Input
abc bcd
Output
no
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.