mirror of
https://github.com/EDeev/web-dev.git
synced 2026-06-16 03:21:13 +03:00
10 lines
206 B
Python
10 lines
206 B
Python
s1 = input()
|
|
s2 = input()
|
|
|
|
if s1.isascii() and s2.isascii() and ' ' not in s1 and ' ' not in s2:
|
|
if sorted(s1) == sorted(s2):
|
|
print("YES")
|
|
else:
|
|
print("NO")
|
|
else:
|
|
print("Error")
|