print ("x = ",end="")
x=int(input())
if x>0: print("sign(",x,") =",1)
if x<0: print("sign(",x,") =",-1)
if x==0: print("sign(",x,") =",0)
print ("x = ",end="")
x=int(input())
if x>0: print("sign(",x,") =",1)
if x<0: print("sign(",x,") =",-1)
if x==0: print("sign(",x,") =",0)