Write a program which reads three integers a, b and c, and prints "Yes" if a < b < c, otherwise "No".
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
if a > b and b > c:
    print('Yes')
else:
    print('No')
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
if a < b and b < c:
    print('Yes')
else:
    print('No')