P13269 [CodeChef] tech04
NOI
题目描述

In this problem, you are given two strings S1 and S2, your task is to determine whether one string is an anagram of the other. An anagram of a string is a string obtained by permuting the letters of a string. For example aaba and aaab are anagrams, while abcd and deba are not.

Input

The first line would consist of the number of test cases 'T'. This would be followed by 'T' lines consisting of two space separated strings. The strings would consist of only letters 'a'-'z'. Each string would consist of no more than 20 characters.

Output

You have to print "YES" if one string is an anagram of the other or "NO" otherwise.

Example

Input:
2
aaba aaab
abcd deba

Output:
YES
NO

输入格式

见题面

输出格式

见题面

样例输入
2 aaba aaab abcd deba
样例输出
YES NO