a1, b1 = map(int, input().split())
a2, b2 = map(int, input().split())
print("Yes" if a1 <= b2 and a2 <= b1 else "No")