Input = input().split()

if Input[2] > Input[1]:

    if Input[1] > Input[0]:

        print("Yes")

    else:

        print("No")

else:

    print("No")
a, b, c = [int(i) for i in input().split()]



if a < b:

    if b < c:

        print('Yes')

    else:

        print('No')

else:

    print('No')
Input = input().split()
if Input[2] > Input[1]:
    if Input[1] > Input[0]:
        print("Yes")
    else:
        print("No")
else:
    print("No")

a, b, c = [int(i) for i in input().split()]
if a < b:
    if b < c:
        print("Yes")
    else:
        print("No")
else:
    print("No")

-Input = input().split() -if Input[2] > Input[1]: -    if Input[1] > Input[0]: +a, b, c = [int(i) for i in input().split()] +if a < b: +    if b < c: