from numpy import sign
A = int(input())
B = int(input())
if(A > B):
print(B)
print("Sign :", sign(B))
else:
print(A)
print("Sign :", sign(A))
from numpy import sign
A = int(input())
B = int(input())
if(A > B):
print(B)
print("Sign :", sign(B))
else:
print(A)
print("Sign :", sign(A))