#include using namespace std; #define rep(i,n) for(int i=0;i<(int)n;i++) long long n,L,res,dp[1000010],w[20]; int main(){ cin >> n >> L; rep(i,n)cin >> w[i]; sort(w,w+n); fill(dp,dp+w[0],(1LL<<60)); dp[0] = 0; rep(i,n-1){ int x = w[i+1]%w[0]; int g = __gcd(w[0],w[i+1]); for(int s=0;s=w[0])p -= w[0]; dp[p] = min(dp[p],dp[t]+w[i+1]); t = p; } } } dp[0] = w[0]; rep(i,w[0]){ if(L>=dp[i])res+=(L-dp[i])/w[0]+1; } cout << res << endl; return 0; }