nums = input().split()

a = int(nums[0])

b = int(nums[1])

c = int(nums[2])



if a < b < c:

    print('Yes')

else:

    print('No')
a, b, c = list(map(int, input().split()))

if a < b < c:

    print("Yes")

else:

    print("No")



nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c:
    print("Yes")
else:
    print("No")

a, b, c = list(map(int, input().split()))
if a < b < c:
    print("Yes")
else:
    print("No")

-nums = input().split() -a = int(nums[0]) -b = int(nums[1]) -c = int(nums[2]) +a, b, c = list(map(int, input().split()))