N = int(input())
inp = [int(i) for i in input().split()]

a = inp[0]
b = inp[1]
c = inp[2]
d = inp[3]

def checking(A,B,C,D):
    X = A
    Y = A

    while X >= B:
        Y = X - B
        if Y <= C:
            X = Y + D
        else:
            X = Y

        if X == A:
            res = "No"
            break

    if X<=B:
        7res = "Yes"

    return res

print(checking(a,b,c,d))