#include <bits/stdc++.h>
using namespace std;

int main() {

	int N,M,min;
	cin>>N>>M;
  min=M;
  vector<int>A(N);
	for(int i=0;i<N;i++){
      cin>>A.at(i);M-=A.at(i);
    if(min>A.at(i)){min=A.at(i);}}
  
  
	cout<<N+(M/min)<<endl;
}
