#include <bits/stdc++.h>
using namespace std;
int main() {
int N,S;
cin >> N >> S;
int ans =0;
for(int i =0; i < N; i++) {
int a;
cin >> a;
ans +=S%a;
S /=a;}
cout << ans+S << "\n";
return 0;}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWludCBOLFM7CgljaW4gPj4gTiA+PiBTOwoJaW50IGFucyA9MDsKCWZvcihpbnQgaSA9MDsgaSA8IE47IGkrKykgewoJCWludCBhOwoJCWNpbiA+PiBhOwoJCWFucyArPVMlYTsKCQlTIC89YTt9Cgljb3V0IDw8IGFucytTIDw8ICJcbiI7CglyZXR1cm4gMDt9