Yo`nalishlar
Hozirda online

Statistika

Masalalar soni: 909

Foydalanuvchilar soni: 8820

Jo'natishlar soni: 714406

Muhokama yozuvlari: 4541

Yangiliklar soni: 97

Yangiliklar izohlari: 1174


So'ngi izohlar

721. Anagrams
Vaqt limiti: 1 sekund
Xotira limiti: 64 MB

The word is an anagram of another word, if it can be obtained by rearrangement of its letters.

   Input

Two words are given in different lines. The words consist of lowercase letters. The lengths of each word is no more than 20000 and not less than 1.

   Output

    Print "YES" if the words are anagrams of each other and "NO" otherwise.

Input

Output

1

sharm

marsh

YES

2

ananas

nnaass

NO

 

 

Tayyorladi: Azat Yusupov
Text from: e-olimp.com
Mening urinishlarim(0) Muhokama (0) Jo'natish Eng yaxshi yechimlar Barcha muvaffaqiyatli urinishlar(92) Barcha urinishlar(161)