Little Petya 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 Petya 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 Petya perform the comparison.
Each of the first two lines contains a bought string. The strings' lengths range from 1 to 100 inclusive. It is guaranteed that the strings are of the same length and also consist of uppercase and lowercase Latin letters.
aaaa
aaaA
0
abs
Abz
-1
abcdefg
AbCdEfF
1
asadasdasd
asdwasdawd
-1
aslkjlkasdd
asdlkjdajwi
1
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0
aAaaaAAaAaaAzZsssSsdDfeEaeqZlpP
AaaaAaaAaaAaZzSSSSsDdFeeAeQZLpp
0
bwuEhEveouaTECagLZiqmUdxEmhRSOzMauJRWLQMppZOumxhAmwuGeDIkvkBLvMXwUoFmpAfDprBcFtEwOULcZWRQhcTbTbX
HhoDWbcxwiMnCNexOsKsujLiSGcLllXOkRSbnOzThAjnnliLYFFmsYkOfpTxRNEfBsoUHfoLTiqAINRPxWRqrTJhgfkKcDOH
-1
kGWUuguKzcvxqKTNpxeDWXpXkrXDvGMFGoXKDfPBZvWSDUyIYBynbKOUonHvmZaKeirUhfmVRKtGhAdBfKMWXDUoqvbfpfHYcg
cvOULleuIIiYVVxcLZmHVpNGXuEpzcWZZWyMOwIwbpkKPwCfkVbKkUuosvxYCKjqfVmHfJKbdrsAcatPYgrCABaFcoBuOmMfFt
1
nCeNVIzHqPceNhjHeHvJvgBsNFiXBATRrjSTXJzhLMDMxiJztphxBRlDlqwDFImWeEPkggZCXSRwelOdpNrYnTepiOqpvkr
HJbjJFtlvNxIbkKlxQUwmZHJFVNMwPAPDRslIoXISBYHHfymyIaQHLgECPxAmqnOCizwXnIUBRmpYUBVPenoUKhCobKdOjL
1
ttXjenUAlfixytHEOrPkgXmkKTSGYuyVXGIHYmWWYGlBYpHkujueqBS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uXwZhibxFQRybbakPteNfwwvcStyGPzoNTunznuHXrWjKMIctWLWJANBAxJ
0
nTomZZuTTRTAAPoUsySVFGElrpQRNLjqvFmcYytiheQnjUhPLnqNBiYtQkljbcvmjuNAVKbvQOWpqqFlQhAhULIhquoCnjUI
ntOmzZuttrtAAPOUSySVFgeLRPQrNLjQvfmCyYTiHEQnjuHPlNQNbIYtqKLJBCVmjunavkbvQOWPQQFlqHaHULIHQuOcnJUi
0
abac
adaa
-1
Bbc
abc
1
aaaba
aaaab
1
import sys


def inp():
    return int(input())


def inlt():
    return list(map(int, input().split()))


def int_to_arr():
    return list(map(int, str(input()).strip()))


def insr():
    return input().strip()


def out(x):
    sys.stdout.write(str(x) + "\n")


def main():
    word1 = insr().lower()
    word2 = insr().lower()
    word1_ord = 0
    word2_ord = 0

    for i in word1:
        word1_ord += ord(i)

    for j in word2:
        word2_ord += ord(j)

    out(0 if word1_ord == word2_ord else -1 if word1_ord < word2_ord else 1)


# def group(input_list):
#     result = []

#     if input_list:
#         current_group = [input_list[0]]

#         for i in range(1, len(input_list)):
#             if input_list[i] == current_group[-1]:
#                 current_group.append(input_list[i])
#             else:
#                 # If the current element is different from the previous one, we've found a new group.
#                 # So, we append the current_group to the result, and start a new group with the current element.
#                 result.append(current_group)
#                 current_group = [input_list[i]]

#             # Logging the current state of the loop at each iteration
#             print(f"At index {i}, current_group: {current_group}, result: {result}")

#         # Append the last remaining group to the result
#         result.append(current_group)

#     # Print the final result
#     print("Final result:", result)


if __name__ == "__main__":
    main()
