Valid Anagram

Easy 20 XPStringsHashing

Commonly asked at Amazon, Microsoft, Google

Read two words, one per line. Print Yes if the second is an anagram of the first (same letters, same counts, any order), otherwise No.

Input
Two lines, each one lowercase word.
Output
Yes or No.

Sample 1

Input

listen
silent

Output

Yes

Sample 2

Input

rat
car

Output

No

Read input with input() (no prompt message) and print only the answer. Run tries the Input box; Submit checks all test cases.

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.
The solution unlocks after 3 submissions.