import java.util.*;
class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int X = sc.nextInt();
		int num = 0;
		int foo[] = new int[N];
		for (int i = 0; i < N; i++) {
			foo[i] = sc.nextInt();
			X -= foo[i];
			num++;
		}
		int min = foo[0];
		for (int j = 1; j < foo.length; j++) {
			min = Math.min(min, foo[j]);
		}
		while (X >= 0) {
			X -= min;
			num++;
		}
		if (X < 0) {
			num -= 1;
		}
		System.out.println(num);
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int X = sc.nextInt();
		int num = 0;
		int foo[] = new int[N];
		for (int i = 0; i < N; i++) {
			foo[i] = sc.nextInt();
			X -= foo[i];
			num++;
		}
		int min = foo[0];
		for (int j = 1; j < foo.length; j++) {
			min = Math.min(min, foo[j]);
		}
		while (X >= 0) {
			X -= min;
			num++;
		}
		if (X < 0) {
			num -= 1;
		}
		System.out.println(num);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int X = sc.nextInt();
		int num = 0;
		int foo[] = new int[N];
		for (int i = 0; i < N; i++) {
			foo[i] = sc.nextInt();
			X -= foo[i];
			num++;
		}
		int min = foo[0];
		for (int j = 1; j < foo.length; j++) {
			min = Math.min(min, foo[j]);
		}
		while (X >= 0) {
			X -= min;
			num++;
		}
		if (X < 0) {
			num -= 1;
		}
		System.out.println(num);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int X = sc.nextInt();
		int num = 0;
		int foo[] = new int[N];
		for (int i = 0; i < N; i++) {
			foo[i] = sc.nextInt();
			X -= foo[i];
			num++;
		}
		int min = foo[0];
		for (int j = 1; j < foo.length; j++) {
			min = Math.min(min, foo[j]);
		}
		while (X >= 0) {
			X -= min;
			num++;
		}
		if (X < 0) {
			num -= 1;
		}
		System.out.println(num);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int num = 0; num 0 int foo[] = new int[N]; foo new int[N] N for (int i = 0; i < N; i++) {
			foo[i] = sc.nextInt();
			X -= foo[i];
			num++;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			foo[i] = sc.nextInt();
			X -= foo[i];
			num++;
		} {
			foo[i] = sc.nextInt();
			X -= foo[i];
			num++;
		} foo[i] = sc.nextInt() foo[i] foo i sc.nextInt() sc.nextInt sc X -= foo[i] X foo[i] foo i num++ num int min = foo[0]; min foo[0] foo 0 for (int j = 1; j < foo.length; j++) {
			min = Math.min(min, foo[j]);
		} int j = 1; int j = 1; j 1 j < foo.length j foo.length foo foo.length j++ j++ j {
			min = Math.min(min, foo[j]);
		} {
			min = Math.min(min, foo[j]);
		} min = Math.min(min, foo[j]) min Math.min(min, foo[j]) Math.min Math min foo[j] foo j while (X >= 0) {
			X -= min;
			num++;
		} X >= 0 X 0 {
			X -= min;
			num++;
		} X -= min X min num++ num if (X < 0) {
			num -= 1;
		} X < 0 X 0 {
			num -= 1;
		} num -= 1 num 1 System.out.println(num) System.out.println System.out System System.out num String[] args args
import java.util.*;
class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int X = sc.nextInt();
		int num = 0;
		int foo[] = new int[N];
		for (int i = 0; i < N; i++) {
			foo[i] = sc.nextInt();
			X -= foo[i];
			num++;
		}
		int min = foo[0];
		for (int j = 1; j < foo.length; j++) {
			min = Math.min(min, foo[j]);
		}
		while (X >= 0) {
			X -= min;
			num++;
		}
		if (X < 0) {
			num -= 1;
		}
		System.out.println(num);
	}
}