a,b,c=list(map(int,input().split()));print('Yes' if a<b<c else 'No')
m,n,o=list(map(int,input().split()))

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

m, n, o = list(map(int, input().split()))
print("Yes" if m < n < o else "No")

-a, b, c = list(map(int, input().split())) -print("Yes" if a < b < c else "No") +m, n, o = list(map(int, input().split())) +print("Yes" if m < n < o else "No")