a,b,c,d = list(map(int,input().split()))

while all:

    c -= b

    if(c <= 0):

        print("Yes")

        break

    a -= d

    if(a <= 0):

        print("No")

        break



A,B,C,D = list(map(int,input().split()))

while all:

    C -= B

    if(C<=0):

        print("Yes")

        break

    A -= D

    if(A<=0):

        print("No")

        break

    
a, b, c, d = list(map(int, input().split()))
while all:
    c -= b
    if c <= 0:
        print("Yes")
        break
    a -= d
    if a <= 0:
        print("No")
        break

A, B, C, D = list(map(int, input().split()))
while all:
    C -= B
    if C <= 0:
        print("Yes")
        break
    A -= D
    if A <= 0:
        print("No")
        break

-a, b, c, d = list(map(int, input().split())) +A, B, C, D = list(map(int, input().split())) -    c -= b -    if c <= 0: +    C -= B +    if C <= 0: -    a -= d -    if a <= 0: +    A -= D +    if A <= 0: