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

a.sort(reverse=True)

cnt = 0
for score in a:
    if x // score > 0:
        num =  a.count(score)
        if num > 1:
            dist_num = x // score
            if dist_num < num:
                cnt += dist_num
            else:
                cnt += num
        else:
            cnt += 1
        x = x % score
print(cnt)