k,x,y = input().split()
print(k<=x)#不超过<=
print(k>=y)