from fractions import Fraction as fd, b, c, a = map(f, input('d b c a: ').split())while True: x, y = map(f, input('x y: ').split()) print(['No','Yes'][d<=x<=b and c<=y<=a])