
import std.algorithm;
import std.array;
import std.conv;
import std.range;
import std.stdio;
import std.string;

void main()
{
	auto nx = readln.split.map!( to!int );
	auto ms = nx[ 0 ].iota.map!( a => readln.strip ).map!( to!int ).array;
	writeln( solve( nx[ 1 ], ms ) );
}

int solve( in int x, in int[] ms )
{
	return ( cast(int) ms.length ) + ( ( x - ms.sum ) / ms.reduce!( min ) );
}

unittest
{
	assert( solve( 1000, [ 120, 100, 140 ] ) == 9 );
	assert( solve( 360, [ 90, 90, 90, 90 ] ) == 4 );
	assert( solve( 3000, [ 150, 130, 150, 130, 110 ] ) == 26 );
}
