import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		}
	}

	private static int returnCreatableCount(int nokori, int[] integers) {
		Arrays.sort(integers);
		return nokori / integers[0];
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		}
	}

	private static int returnCreatableCount(int nokori, int[] integers) {
		Arrays.sort(integers);
		return nokori / integers[0];
	}
} Main public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		} {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int material = scanner.nextInt(); material scanner.nextInt() scanner.nextInt scanner int[] integers = new int[N]; integers new int[N] N for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				integers[i] = scanner.nextInt();
			} {
				integers[i] = scanner.nextInt();
			} integers[i] = scanner.nextInt() integers[i] integers i scanner.nextInt() scanner.nextInt scanner int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers); cnt returnCreatableCount(material - Arrays.stream(integers).sum(), integers) returnCreatableCount material - Arrays.stream(integers).sum() material Arrays.stream(integers).sum() Arrays.stream(integers).sum Arrays.stream(integers) Arrays.stream Arrays integers integers System.out.println(N + cnt) System.out.println System.out System System.out N + cnt N cnt String[] args args private static int returnCreatableCount(int nokori, int[] integers) {
		Arrays.sort(integers);
		return nokori / integers[0];
	} returnCreatableCount {
		Arrays.sort(integers);
		return nokori / integers[0];
	} Arrays.sort(integers) Arrays.sort Arrays integers return nokori / integers[0]; nokori / integers[0] nokori integers[0] integers 0 int nokori nokori int[] integers integers public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		}
	}

	private static int returnCreatableCount(int nokori, int[] integers) {
		Arrays.sort(integers);
		return nokori / integers[0];
	}
} public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		}
	}

	private static int returnCreatableCount(int nokori, int[] integers) {
		Arrays.sort(integers);
		return nokori / integers[0];
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int N = scanner.nextInt();
			int material = scanner.nextInt();

			// input
			int[] integers = new int[N];
			for (int i = 0; i < N; i++) {
				integers[i] = scanner.nextInt();
			}
			// 最小材料数で何個作成できるか算出する
			int cnt = returnCreatableCount(material - Arrays.stream(integers).sum(), integers);
			System.out.println(N + cnt);
		}
	}

	private static int returnCreatableCount(int nokori, int[] integers) {
		Arrays.sort(integers);
		return nokori / integers[0];
	}
}