#include <iostream>
using namespace std;
int n, k, sum;
int arr[10];
int main(void)
{
cin >> n >> k;
for (int i = 0; i < n; i++)
cin >> arr[i];
for (int i = n - 1; i >= 0; i--)
{
if (k >= arr[i])
{
sum += k / arr[i];
k %= arr[i];
}
}
cout << sum;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBuLCBrLCBzdW07CmludCBhcnJbMTBdOwoKaW50IG1haW4odm9pZCkKewoJY2luID4+IG4gPj4gazsKCWZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQoJCWNpbiA+PiBhcnJbaV07CgoJZm9yIChpbnQgaSA9IG4gLSAxOyBpID49IDA7IGktLSkKCXsKCQlpZiAoayA+PSBhcnJbaV0pCgkJewoJCQlzdW0gKz0gayAvIGFycltpXTsKCQkJayAlPSBhcnJbaV07CgkJfQoJfQoJY291dCA8PCBzdW07CglyZXR1cm4gMDsKfQ==