Note: For Turbo C++, select "Text" as your language
Resubmit your incorrect solutions to the Debugging problems, if you were getting template errors for Java and Python.

Problem Description:
IIITD is hosting a guessing game. The game starts with a player coming up with a word (not necessarily a valid English word). The 2nd player, without hearing the first player has to come up with a word that consists of exactly same letters as the first one.
We tried to write a program to judge the contest, but we are facing a lot of issues. Please help us to fix it.

Example Test Case 1

Input
abcdef
fedcab

Output
Yes

Example Test Case 2

Input
abcd
fedb

Output
No
When you click on submit and choose your language, you will see the wrong code being displayed on the editor. You may copy that code or edit it there itself. You have to submit a code that does the above mentioned functionality.
NOTE : Do not write your new code to implement the functionality. You have to make changes in this file only. Our judge will check the number of changes made when you submit your code. Making your own code will be considered as a case of cheating, and you will be disqualified.
def sort_array ( array , length):
    for c in range(0,length-1):
        for d in range(0,(length-c)-1):
            if array[d] > array[d+1] :
                temp=array[d]
                array[d]=array[d+1]
                array[d+1] = temp
 
a1 = raw_input()
a = list(a1)
b1 = raw_input()
b = list(b1)
l1=len(a)
l2=len(b)
 
if l1 != l2 :
    print "No"
else :
    sort_array(a,l1);
    sort_array(b,l2);
    flag=1
    for i in range(0,l1):
        if a[i] != b[i] :
            flag=0
            break
    if flag == 1 :
        print "Yes"
    else :
        print "No"