#include <cstdio>
using namespace std;
const int N = (int)1e5 + 10;
int main () {
int n, s;
unsigned long long p[N];
scanf("%d %d", &n, &s);
p[0] = 1;
for(int i = 1; i <= n; i++ ){
int a; scanf("%d", &a);
p[i] = p[i - 1] * (unsigned long long)a;
}
unsigned long long ans = 0;
for(int i = n; i >= 0; i--) {
ans += (unsigned long long) s / p[i];
s = s % p[i];
if (s == 0)
break;
}
printf("%llu\n", ans);
return 0;
}
I2luY2x1ZGUgPGNzdGRpbz4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgpjb25zdCBpbnQgTiA9IChpbnQpMWU1ICsgMTA7CgppbnQgbWFpbiAoKSB7CiAgICBpbnQgbiwgczsKICAgIHVuc2lnbmVkIGxvbmcgbG9uZyBwW05dOwogICAgCiAgICBzY2FuZigiJWQgJWQiLCAmbiwgJnMpOwogICAgCiAgICBwWzBdID0gMTsKICAgIAogICAgZm9yKGludCBpID0gMTsgaSA8PSBuOyBpKysgKXsKICAgICAgICBpbnQgYTsgc2NhbmYoIiVkIiwgJmEpOwogICAgICAgIHBbaV0gPSBwW2kgLSAxXSAqICh1bnNpZ25lZCBsb25nIGxvbmcpYTsKICAgIH0KICAgIAogICAgdW5zaWduZWQgbG9uZyBsb25nIGFucyA9IDA7CiAgICAKICAgIGZvcihpbnQgaSA9IG47IGkgPj0gMDsgaS0tKSB7CiAgICAgICAgYW5zICs9ICh1bnNpZ25lZCBsb25nIGxvbmcpIHMgLyBwW2ldOwogICAgICAgIHMgPSBzICUgcFtpXTsKICAgICAgICAKICAgICAgICBpZiAocyA9PSAwKQogICAgICAgICAgICBicmVhazsKICAgIH0KICAgIAogICAgcHJpbnRmKCIlbGx1XG4iLCBhbnMpOwogICAgcmV0dXJuIDA7Cn0=