1x = input().lower()2y = input().lower()3 4if x > y:5 print(1)6elif x < y:7 print(-1)8else:9 print(0)