import java.util.Scanner;

public class Main {
	static int[] m;
	static int min;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x = sc.nextInt();
		m = new int[n];

		min = 0;
		int count = 0;

		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		}
		sc.close();
		getMin();
		while (x >= min) {
			x -= min;
			count++;
		}
		System.out.println(count);
	}

	public static void getMin() {
		
		min = m[0];
		for(int i = 1; i < m.length; i++) {
			if(m[i] < min) {
				min = m[i];
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static int[] m;
	static int min;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x = sc.nextInt();
		m = new int[n];

		min = 0;
		int count = 0;

		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		}
		sc.close();
		getMin();
		while (x >= min) {
			x -= min;
			count++;
		}
		System.out.println(count);
	}

	public static void getMin() {
		
		min = m[0];
		for(int i = 1; i < m.length; i++) {
			if(m[i] < min) {
				min = m[i];
			}
		}
	}
} Main static int[] m; m static int min; min public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x = sc.nextInt();
		m = new int[n];

		min = 0;
		int count = 0;

		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		}
		sc.close();
		getMin();
		while (x >= min) {
			x -= min;
			count++;
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x = sc.nextInt();
		m = new int[n];

		min = 0;
		int count = 0;

		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		}
		sc.close();
		getMin();
		while (x >= min) {
			x -= min;
			count++;
		}
		System.out.println(count);
	} 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 m = new int[n] m new int[n] n min = 0 min 0 int count = 0; count 0 for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		} {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		} m[i] = sc.nextInt() m[i] m i sc.nextInt() sc.nextInt sc if (x - m[i] > 0) {
				x -= m[i];
				count++;
			} x - m[i] > 0 x - m[i] x m[i] m i 0 {
				x -= m[i];
				count++;
			} x -= m[i] x m[i] m i count++ count sc.close() sc.close sc getMin() getMin while (x >= min) {
			x -= min;
			count++;
		} x >= min x min {
			x -= min;
			count++;
		} x -= min x min count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public static void getMin() {
		
		min = m[0];
		for(int i = 1; i < m.length; i++) {
			if(m[i] < min) {
				min = m[i];
			}
		}
	} getMin {
		
		min = m[0];
		for(int i = 1; i < m.length; i++) {
			if(m[i] < min) {
				min = m[i];
			}
		}
	} min = m[0] min m[0] m 0 for(int i = 1; i < m.length; i++) {
			if(m[i] < min) {
				min = m[i];
			}
		} int i = 1; int i = 1; i 1 i < m.length i m.length m m.length i++ i++ i {
			if(m[i] < min) {
				min = m[i];
			}
		} {
			if(m[i] < min) {
				min = m[i];
			}
		} 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 public class Main {
	static int[] m;
	static int min;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x = sc.nextInt();
		m = new int[n];

		min = 0;
		int count = 0;

		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		}
		sc.close();
		getMin();
		while (x >= min) {
			x -= min;
			count++;
		}
		System.out.println(count);
	}

	public static void getMin() {
		
		min = m[0];
		for(int i = 1; i < m.length; i++) {
			if(m[i] < min) {
				min = m[i];
			}
		}
	}
} public class Main {
	static int[] m;
	static int min;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x = sc.nextInt();
		m = new int[n];

		min = 0;
		int count = 0;

		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		}
		sc.close();
		getMin();
		while (x >= min) {
			x -= min;
			count++;
		}
		System.out.println(count);
	}

	public static void getMin() {
		
		min = m[0];
		for(int i = 1; i < m.length; i++) {
			if(m[i] < min) {
				min = m[i];
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	static int[] m;
	static int min;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x = sc.nextInt();
		m = new int[n];

		min = 0;
		int count = 0;

		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
			if (x - m[i] > 0) {
				x -= m[i];
				count++;
			}
		}
		sc.close();
		getMin();
		while (x >= min) {
			x -= min;
			count++;
		}
		System.out.println(count);
	}

	public static void getMin() {
		
		min = m[0];
		for(int i = 1; i < m.length; i++) {
			if(m[i] < min) {
				min = m[i];
			}
		}
	}
}
