n,k=map(int,input().split())
m=list(map(int,input().split()))
m.sort()
m.reverse()
sum=k
p=0
for i in m:
    if(sum>=i):
        a=int(sum/i)
        p=p+a
        sum=sum-a*i
    if sum==0:
        break
if(sum==0):
   print(p)
else:
   print("it's not posiible to select coins in such a way that they sum upto",k) 
e888cb50fed731c8aa90237ae9053342f215f57c
<mask token>

<mask token>
m.sort()
m.reverse()
<mask token>
for i in m:
    if sum >= i:
        a = int(sum / i)
        p = p + a
        sum = sum - a * i
    if sum == 0:
        break
if sum == 0:
    print(p)
else:
    print("it's not posiible to select coins in such a way that they sum upto",
        k)

n, k = map(int, input().split())
m = list(map(int, input().split()))
m.sort()
m.reverse()
sum = k
p = 0
for i in m:
    if sum >= i:
        a = int(sum / i)
        p = p + a
        sum = sum - a * i
    if sum == 0:
        break
if sum == 0:
    print(p)
else:
    print("it's not posiible to select coins in such a way that they sum upto",
        k)

n,k=map(int,input().split())
m=list(map(int,input().split()))
m.sort()
m.reverse()
sum=k
p=0
for i in m:
    if(sum>=i):
        a=int(sum/i)
        p=p+a
        sum=sum-a*i
    if sum==0:
        break
if(sum==0):
   print(p)
else:
   print("it's not posiible to select coins in such a way that they sum upto",k) 