Two strings A and B comprising of lower case English letters are compatible if they are equal or can be made equal by following this step any number of times:
Your task is to determine if given strings A and B are compatible.
Input format
First line: String A
Next line: String B
Output format
For each test case, print YES if string A can be converted to string B , otherwise print NO.
Constraints
1≤len(A)≤10000001≤len(B)≤1000000
The string abaca can be converted to bcbda in one move and to cdbda in the next move.