import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		BitterAlchemy solver = new BitterAlchemy();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}


	static class BitterAlchemy {

		private Scanner scanner;
		private int n;
		private int x;
		private int[] m;
		private int output;

		public BitterAlchemy(){
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			n = scanner.nextInt();
			x = scanner.nextInt();
			m = new int[n];
			for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			}
		}
		public void solve() {
			int min = 1000;
			output=0;
			for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			}

			while(min<=x) {
				x-=min;
				output++;
			}
		}
		public void writeOutput() {
			System.out.println(output);
		}

	}


} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		BitterAlchemy solver = new BitterAlchemy();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}


	static class BitterAlchemy {

		private Scanner scanner;
		private int n;
		private int x;
		private int[] m;
		private int output;

		public BitterAlchemy(){
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			n = scanner.nextInt();
			x = scanner.nextInt();
			m = new int[n];
			for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			}
		}
		public void solve() {
			int min = 1000;
			output=0;
			for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			}

			while(min<=x) {
				x-=min;
				output++;
			}
		}
		public void writeOutput() {
			System.out.println(output);
		}

	}


} Main public static void main(String[] args) {
		BitterAlchemy solver = new BitterAlchemy();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	} main {
		BitterAlchemy solver = new BitterAlchemy();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	} BitterAlchemy solver = new BitterAlchemy(); solver new BitterAlchemy() solver.readInput() solver.readInput solver solver.solve() solver.solve solver solver.writeOutput() solver.writeOutput solver String[] args args static class BitterAlchemy {

		private Scanner scanner;
		private int n;
		private int x;
		private int[] m;
		private int output;

		public BitterAlchemy(){
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			n = scanner.nextInt();
			x = scanner.nextInt();
			m = new int[n];
			for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			}
		}
		public void solve() {
			int min = 1000;
			output=0;
			for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			}

			while(min<=x) {
				x-=min;
				output++;
			}
		}
		public void writeOutput() {
			System.out.println(output);
		}

	} BitterAlchemy private Scanner scanner; scanner private int n; n private int x; x private int[] m; m private int output; output public BitterAlchemy(){
			scanner = new Scanner(System.in);
		} BitterAlchemy {
			scanner = new Scanner(System.in);
		} scanner = new Scanner(System.in) scanner new Scanner(System.in) public void readInput() {
			n = scanner.nextInt();
			x = scanner.nextInt();
			m = new int[n];
			for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			}
		} readInput {
			n = scanner.nextInt();
			x = scanner.nextInt();
			m = new int[n];
			for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			}
		} n = scanner.nextInt() n scanner.nextInt() scanner.nextInt scanner x = scanner.nextInt() x scanner.nextInt() scanner.nextInt scanner m = new int[n] m new int[n] n for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				m[i] = scanner.nextInt();
			} {
				m[i] = scanner.nextInt();
			} m[i] = scanner.nextInt() m[i] m i scanner.nextInt() scanner.nextInt scanner public void solve() {
			int min = 1000;
			output=0;
			for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			}

			while(min<=x) {
				x-=min;
				output++;
			}
		} solve {
			int min = 1000;
			output=0;
			for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			}

			while(min<=x) {
				x-=min;
				output++;
			}
		} int min = 1000; min 1000 output=0 output 0 for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			} {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			} x -= m[i] x m[i] m i output++ output if(m[i] < min) {
					min = m[i];
				} m[i] < min m[i] m i min {
					min = m[i];
				} min = m[i] min m[i] m i while(min<=x) {
				x-=min;
				output++;
			} min<=x min x {
				x-=min;
				output++;
			} x-=min x min output++ output public void writeOutput() {
			System.out.println(output);
		} writeOutput {
			System.out.println(output);
		} System.out.println(output) System.out.println System.out System System.out output public class Main {

	public static void main(String[] args) {
		BitterAlchemy solver = new BitterAlchemy();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}


	static class BitterAlchemy {

		private Scanner scanner;
		private int n;
		private int x;
		private int[] m;
		private int output;

		public BitterAlchemy(){
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			n = scanner.nextInt();
			x = scanner.nextInt();
			m = new int[n];
			for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			}
		}
		public void solve() {
			int min = 1000;
			output=0;
			for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			}

			while(min<=x) {
				x-=min;
				output++;
			}
		}
		public void writeOutput() {
			System.out.println(output);
		}

	}


} public class Main {

	public static void main(String[] args) {
		BitterAlchemy solver = new BitterAlchemy();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}


	static class BitterAlchemy {

		private Scanner scanner;
		private int n;
		private int x;
		private int[] m;
		private int output;

		public BitterAlchemy(){
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			n = scanner.nextInt();
			x = scanner.nextInt();
			m = new int[n];
			for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			}
		}
		public void solve() {
			int min = 1000;
			output=0;
			for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			}

			while(min<=x) {
				x-=min;
				output++;
			}
		}
		public void writeOutput() {
			System.out.println(output);
		}

	}


} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		BitterAlchemy solver = new BitterAlchemy();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}


	static class BitterAlchemy {

		private Scanner scanner;
		private int n;
		private int x;
		private int[] m;
		private int output;

		public BitterAlchemy(){
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			n = scanner.nextInt();
			x = scanner.nextInt();
			m = new int[n];
			for(int i=0; i<n;i++) {
				m[i] = scanner.nextInt();
			}
		}
		public void solve() {
			int min = 1000;
			output=0;
			for(int i=0;i<n;i++) {
				x -= m[i];
				output++;
				if(m[i] < min) {
					min = m[i];
				}
			}

			while(min<=x) {
				x-=min;
				output++;
			}
		}
		public void writeOutput() {
			System.out.println(output);
		}

	}


}
