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