Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
346 B
1
Indexable
Never
a = str(input())
b = str(input())
oa = []
ob = []
for i in range(len(a)):
    oa.append(ord(a[i]))
for i in range(len(b)):
    ob.append(ord(b[i]))
for i in range(len(oa)):
    oa[i] = int(oa[i])
for i in range(len(ob)):
    ob[i] = int(ob[i])
print(oa.sort())
print(ob.sort())
if oa == ob:
    print('YES')
else:
    print('NO')