668. Priyanshu and his Strings
0
Easy
Little Priyanshu loves presents. His mum bought him two strings of the **same size** for his birthday. The strings consist of uppercase and lowercase Latin letters. Now Priyanshu wants to compare those two strings lexicographically.
The letters' case does not matter, that is an uppercase letter is considered equivalent to the corresponding lowercase letter.
Help Priyanshu perform the comparison.
Input Format
Each of the first two lines contains a bought string.
Output Format
If the first string is less than the second one, print "-1". If the second string is less than the first one, print "1". If the strings are equal, print "0".
Example
Input
aaaa
aaaA
Output
0
Constraints
1 <= s.length <= 104
This string only consists of uppercase and lowercase Latin letters.
This string only consists of uppercase and lowercase Latin letters.
Loading...
View Submissions
Console