a,b = map(int,input().split())
print('{}\n{}'.format(a>b,a<b))