Anagram check
Go
Easy
strings
Task «Anagram check»
Write a program that takes two strings and determines whether they are anagrams (i.e., contain the same characters in the same quantity). Character case is considered. Spaces and punctuation marks are not ignored. If the strings are anagrams, output "YES", otherwise "NO".
Input Format
In the first line, the first string is entered. In the second line, the second string is entered.
Output Format
Output "YES" if the strings are anagrams, otherwise "NO".
Examples
Example 1
INPUT
listen
silent
OUTPUT
YES
Example 2
INPUT
hello
world
OUTPUT
NO
Example 3
INPUT
5
OUTPUT
NO
main.go