611_E. New Year and Three Musketeers
Do you know the story about the three musketeers? Anyway, you must help them now.

Richelimakieu is a cardinal in the city of Bearis. He found three brave warriors and called them the three musketeers. Athos has strength a, Borthos strength b, and Caramis has strength c.

The year 2015 is almost over and there are still n criminals to be defeated. The i-th criminal has strength ti. It's hard to defeat strong criminals — maybe musketeers will have to fight together to achieve it.

Richelimakieu will coordinate musketeers' actions. In each hour each musketeer can either do nothing or be assigned to one criminal. Two or three musketeers can be assigned to the same criminal and then their strengths are summed up. A criminal can be defeated in exactly one hour (also if two or three musketeers fight him). Richelimakieu can't allow the situation where a criminal has strength bigger than the sum of strengths of musketeers fighting him — a criminal would win then!

In other words, there are three ways to defeat a criminal.

  * A musketeer of the strength x in one hour can defeat a criminal of the strength not greater than x. So, for example Athos in one hour can defeat criminal i only if ti ≤ a. 
  * Two musketeers can fight together and in one hour defeat a criminal of the strength not greater than the sum of strengths of these two musketeers. So, for example Athos and Caramis in one hour can defeat criminal i only if ti ≤ a + c. Note that the third remaining musketeer can either do nothing or fight some other criminal. 
  * Similarly, all three musketeers can fight together and in one hour defeat a criminal of the strength not greater than the sum of musketeers' strengths, i.e. ti ≤ a + b + c. 



Richelimakieu doesn't want musketeers to fight during the New Year's Eve. Thus, he must coordinate their actions in order to minimize the number of hours till all criminals will be defeated.

Find the minimum number of hours to defeat all criminals. If musketeers can't defeat them all then print "-1" (without the quotes) instead.

Input

The first line of the input contains a single integer n (1 ≤ n ≤ 200 000) — the number of criminals.

The second line contains three integers a, b and c (1 ≤ a, b, c ≤ 108) — strengths of musketeers.

The third line contains n integers t1, t2, ..., tn (1 ≤ ti ≤ 108) — strengths of criminals.

Output

Print one line with the answer.

If it's impossible to defeat all criminals, print "-1" (without the quotes). Otherwise, print the minimum number of hours the three musketeers will spend on defeating all criminals.

Examples

Input

5
10 20 30
1 1 1 1 50


Output

2


Input

5
10 20 30
1 1 1 1 51


Output

3


Input

7
30 20 10
34 19 50 33 88 15 20


Output

-1


Input

6
10 5 10
10 9 5 25 20 5


Output

3

Note

In the first sample Athos has strength 10, Borthos 20, and Caramis 30. They can defeat all criminals in two hours:

  * Borthos and Caramis should together fight a criminal with strength 50. In the same hour Athos can fight one of four criminals with strength 1. 
  * There are three criminals left, each with strength 1. Each musketeer can fight one criminal in the second hour. 



In the second sample all three musketeers must together fight a criminal with strength 51. It takes one hour. In the second hour they can fight separately, each with one criminal. In the third hour one criminal is left and any of musketeers can fight him.
```python
import sys,io,os
try:Z=io.BytesIO(os.read(0,os.fstat(0).st_size)).readline
except:Z=lambda:sys.stdin.readline().encode()
X=lambda x:print(x)or quit()

n=int(Z());a,b,c=sorted(map(int,Z().split()));t=map(int,Z().split());d=[0]*7
B=[a,b]+sorted([a+b,c])+[a+c,b+c,a+b+c]
for i in t:
    for v in range(7):
        if i<=B[v]:d[v]+=1;break
    else:X(-1)

t=sum(d[3:]);d[6]=0;d[0]=max(0,d[0]-d[5]);d[5]=0
if d[1]>=d[4]:d[1]-=d[4]
else:d[0]=max(0,d[0]+d[1]-d[4]);d[1]=0
d[4]=0
if a+b<=c:
    if d[1]>=d[3]:d[1]-=d[3];d[0]=max(0,d[0]-d[3])
    else:
        e=d[3]-d[1];d[0]=max(0,d[0]-d[1]);d[1]=0
        if e>(d[0]+1)//2:e-=(d[0]+1)//2;d[2]=max(0,d[2]-e);d[0]=0
        else:d[0]=max(0,d[0]-2*e)
else:
    if d[2]>=d[3]:d[2]-=d[3]
    else:
        e=d[3]-d[2];d[2]=0
        if d[1]>=e:d[1]-=e
        else:e-=d[1];d[1]=0;d[0]=max(0,d[0]-e)
d[3]=0
if d[1]>=d[2]:d[1]-=d[2];d[0]=max(0,d[0]-d[2]);t+=d[2];d[2]=0
else:
    e=d[2]-d[1];d[0]=max(0,d[0]-d[1]);t+=d[1];d[2]-=d[1];d[1]=0
    v=(d[0]+1)//2
    if e>v:e-=v;t+=v;d[2]-=v;d[0]=0;X(t+(d[2]+1)//2)
    else:d[0]=max(0,d[0]-2*e);d[2]-=e;t+=e
m=d[1]//2
if m>=d[0]:X(t+m+(d[1]%2))
else:X(t+m+(d[0]-m+(d[1]%2)+2)//3)
```