first = input()
first = first.lower()
second = input()
second = second.lower()
if first < second:
    print('-1')
if first > second:
    print('1')
if first == second:
    print('0')

5a61bb0dea1ee778428302bd28138b02795d4fb5
<mask token>

<mask token>
if first < second:
    print('-1')
if first > second:
    print('1')
if first == second:
    print('0')

first = input()
first = first.lower()
second = input()
second = second.lower()
if first < second:
    print('-1')
if first > second:
    print('1')
if first == second:
    print('0')
