Problem Description

Input has two strings a and b are provided (lowercase letters). Output YES if they are anagrams else NO.

Input Format

Two lines: a then b.

Output Format

YES or NO.

Sample Test Case

Input:
listen silent
Output:
YES

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next