Problem 790
Equal Strings Ignoring Case
Easy · 10 pts · String, Basics
Problem
Decide whether two words are equal if the difference between uppercase and lowercase letters is ignored. For example, Hello and hELLO are equal in this sense, but Hello and Help are not. Convert both words to lowercase (or both to uppercase) and compare them. Words of different lengths are never equal.
Input
Two lines, each containing one word of English letters.
Output
Print YES if the words are equal ignoring case, otherwise NO.
Constraints
1 <= length of each word <= 100000
Example input
Hello hELLO
Example output
YES
Explanation
Lowercasing both Hello and hELLO gives hello, so they are equal and the answer is YES.