Permutation#496

Permutation

1 second
128 megabytes
Very easy

If you have read Harry Potter, you know that the lord of evil, Lord Voldemort, created his name by rearranging the letters of his real name. Thus, from the name "Tom Marvolo Riddle" he formed "I am Lord Voldemort".

Input

The first line contains the number of tests . The next lines each contain two words separated by a space. The length of each word is greater than and does not exceed characters.

Output

For each test case, output "Yes" if it is possible to obtain one name from the other by rearranging its letters, and "No" otherwise.

Examples

Example 1

Loading
Loading

Note

  1. Rearranging (permutation) changes the order of the letters in the word, but no new letters may be added and no original letters may be removed. For example, you can convert "aabc" to "abca", but not to "bac", "abc", "aabca", or "aacbb".

  2. The words contain only English letters (–, –).

  3. The words do not contain spaces.

  4. You may ignore case when comparing words, i.e., is considered equal to , to , and so on.