PROGRAMMING:Determine whether two strings are morphemes
If a string is a rearrangement of another string, the two strings are mutable to each other. For example, "heart" and "Earth" are mutable words, and "Mary" and "my" are mutable words.
###Input format:
Enter the first string on the first line and the second string on the second line.
###Output format:
The output of "yes" indicates that it is an interchangeable word, and the output of "no" indicates that it is not an interchangeable word.
###Input sample 1:
Here is a set of inputs. For example:
```in
Mary
arMy
```
###Output sample 1
The corresponding output is given here. For example:
```out
yes
```
###Input sample 2:
Here is a set of inputs. For example:
```in
hello 114
114 hello
```
###Output sample 2:
The corresponding output is given here. For example:
```out
yes
```
###Input sample 3:
Here is a set of inputs. For example:
```in
Wellcom
mocllew
```
###Output sample 3:
The corresponding output is given here. For example:
```out
no
```
answer:If there is no answer, please comment
```
str1=input()
str2=input()
l1,l2=list(str1),list(str2)
l1.sort()
l2.sort()
if l1==l2:
print("yes")
else:
print("no")
```
###Input format:
Enter the first string on the first line and the second string on the second line.
###Output format:
The output of "yes" indicates that it is an interchangeable word, and the output of "no" indicates that it is not an interchangeable word.
###Input sample 1:
Here is a set of inputs. For example:
```in
Mary
arMy
```
###Output sample 1
The corresponding output is given here. For example:
```out
yes
```
###Input sample 2:
Here is a set of inputs. For example:
```in
hello 114
114 hello
```
###Output sample 2:
The corresponding output is given here. For example:
```out
yes
```
###Input sample 3:
Here is a set of inputs. For example:
```in
Wellcom
mocllew
```
###Output sample 3:
The corresponding output is given here. For example:
```out
no
```
answer:If there is no answer, please comment
```
str1=input()
str2=input()
l1,l2=list(str1),list(str2)
l1.sort()
l2.sort()
if l1==l2:
print("yes")
else:
print("no")
```