#C98. Anagram Checker

    ID: 53932 Type: Default 1000ms 256MiB

Anagram Checker

Anagram Checker

Given two strings, determine whether they are anagrams of each other. Two strings are anagrams if they consist of the same characters in any order. The comparison is case-insensitive and any leading or trailing spaces should be ignored.

The input is taken from standard input with each string provided on a separate line. Your program should output "true" (without quotes) if the two strings are anagrams, and "false" otherwise.

For example, the strings "listen" and "silent" are anagrams, but "apple" and "pale" are not.

inputFormat

The input consists of two lines. The first line contains the first string, and the second line contains the second string. Both strings may include leading or trailing spaces and can be in mixed case.

outputFormat

Output a single line containing either "true" if the two given strings are anagrams of each other or "false" otherwise.## sample



true