import java.util.*;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int X = sc.nextInt();

		int m_i = 0;
		int m_g = 0;
		int m_min = 1000;

		while (m_g <= X && m_i < N) {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		}

		if (m_g < X) {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} else {
			System.out.println(m_i);
		}

		sc.close();
		// System.out.println(N + "," + X);

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int X = sc.nextInt();

		int m_i = 0;
		int m_g = 0;
		int m_min = 1000;

		while (m_g <= X && m_i < N) {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		}

		if (m_g < X) {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} else {
			System.out.println(m_i);
		}

		sc.close();
		// System.out.println(N + "," + X);

	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int X = sc.nextInt();

		int m_i = 0;
		int m_g = 0;
		int m_min = 1000;

		while (m_g <= X && m_i < N) {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		}

		if (m_g < X) {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} else {
			System.out.println(m_i);
		}

		sc.close();
		// System.out.println(N + "," + X);

	} main {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int X = sc.nextInt();

		int m_i = 0;
		int m_g = 0;
		int m_min = 1000;

		while (m_g <= X && m_i < N) {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		}

		if (m_g < X) {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} else {
			System.out.println(m_i);
		}

		sc.close();
		// System.out.println(N + "," + X);

	} 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 m_i = 0; m_i 0 int m_g = 0; m_g 0 int m_min = 1000; m_min 1000 while (m_g <= X && m_i < N) {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		} m_g <= X && m_i < N m_g <= X m_g X m_i < N m_i N {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		} int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc m_g = m_g + m m_g m_g + m m_g m if (m < m_min) {
				m_min = m;
			} m < m_min m m_min {
				m_min = m;
			} m_min = m m_min m m_i++ m_i if (m_g < X) {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} else {
			System.out.println(m_i);
		} m_g < X m_g X {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} int n = (X - m_g) / m_min; n (X - m_g) / m_min (X - m_g) X m_g m_min System.out.println(m_i + n) System.out.println System.out System System.out m_i + n m_i n {
			System.out.println(m_i);
		} System.out.println(m_i) System.out.println System.out System System.out m_i sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int X = sc.nextInt();

		int m_i = 0;
		int m_g = 0;
		int m_min = 1000;

		while (m_g <= X && m_i < N) {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		}

		if (m_g < X) {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} else {
			System.out.println(m_i);
		}

		sc.close();
		// System.out.println(N + "," + X);

	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int X = sc.nextInt();

		int m_i = 0;
		int m_g = 0;
		int m_min = 1000;

		while (m_g <= X && m_i < N) {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		}

		if (m_g < X) {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} else {
			System.out.println(m_i);
		}

		sc.close();
		// System.out.println(N + "," + X);

	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int X = sc.nextInt();

		int m_i = 0;
		int m_g = 0;
		int m_min = 1000;

		while (m_g <= X && m_i < N) {

			int m = sc.nextInt();

			m_g = m_g + m;

			if (m < m_min) {
				m_min = m;
			}

			m_i++;

		}

		if (m_g < X) {

			int n = (X - m_g) / m_min;
			System.out.println(m_i + n);

		} else {
			System.out.println(m_i);
		}

		sc.close();
		// System.out.println(N + "," + X);

	}
}
