N, P, Q, R = map(int, input().split())
A = list(map(int, input().split()))
S = [0 for _ in range(N+1)]
for i in range(N):
    S[i+1] = S[i] + A[i]

ans = False
for x in range(N-3):
    l = x+1
    r = N-1
    y = -1
    while l <= r:
        m = (l+r)//2
        d = S[m]-S[x]
        if d < P:
            l = m+1
        elif d > P:
            r = m-1
        else:
            y = m
            break
    if y < 0:
        continue
    l = y+1
    r = N-1
    z = -1
    while l <= r:
        m = (l+r)//2
        d = S[m]-S[y]
        if d < Q:
            l = m+1
        elif d > Q:
            r = m-1
        else:
            z = m
            break
    if z < 0:
        continue
    l = z+1
    r = N-1
    w = -1
    while l <= r:
        m = (l+r)//2
        d = S[m]-S[z]
        if d < R:
            l = m+1
        elif d > R:
            r = m-1
        else:
            w = m
            break
    if w < 0:
        continue
    ans = True

print('Yes' if ans else 'No')