Anagrams
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The word is an anagram of another word, if it can be obtained by rearrangement of its letters.
Input
Two words are given in different lines. The words consist of lowercase letters and digits. The lengths of each word is no more than .
Output
Print "YES" if the words are anagrams of each other and "NO" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 15K
Acceptance rate 56%