x,y=input().split()
print(x>y)
print(x<y)