m,n = map(int,input().split(' '))
print(True if m>n else False)
print(True if m<n else False)