def CheckNums(num1,num2): 

    # code goes here 
    if num2 > num1:
        return True
    elif num2 < num1:
        return False
    else:
        return "-1"

    
# keep this function call here  
print CheckNums(raw_input())
