#%%
n, m = map(int,input().split())

x = list(map(int,input().split()))

# %%

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

while True:
    c -= b
    if c <= 0:
        print("Yes")
        break
    a -= d
    if a <= 0:
        print("No")
        break
