x = input().split()
m = x[0]#x中的0位数
n = x[1]
print( m > n )
print( m < n )