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

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 = new int[n];

        int cnt = 0;
        int total = 0;
        for (int i = 0; i < n; i++) {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        }

        Arrays.sort(m);

        while (total + m[0] <= x) {
            total += m[0];
            cnt++;
        }

        System.out.print(cnt);
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner 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 = new int[n];

        int cnt = 0;
        int total = 0;
        for (int i = 0; i < n; i++) {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        }

        Arrays.sort(m);

        while (total + m[0] <= x) {
            total += m[0];
            cnt++;
        }

        System.out.print(cnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int x = sc.nextInt();
        int[] m = new int[n];

        int cnt = 0;
        int total = 0;
        for (int i = 0; i < n; i++) {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        }

        Arrays.sort(m);

        while (total + m[0] <= x) {
            total += m[0];
            cnt++;
        }

        System.out.print(cnt);
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int x = sc.nextInt();
        int[] m = new int[n];

        int cnt = 0;
        int total = 0;
        for (int i = 0; i < n; i++) {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        }

        Arrays.sort(m);

        while (total + m[0] <= x) {
            total += m[0];
            cnt++;
        }

        System.out.print(cnt);
    } 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 = new int[n]; m new int[n] n int cnt = 0; cnt 0 int total = 0; total 0 for (int i = 0; i < n; i++) {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        } {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        } m[i] = sc.nextInt() m[i] m i sc.nextInt() sc.nextInt sc cnt++ cnt total += m[i] total m[i] m i Arrays.sort(m) Arrays.sort Arrays m while (total + m[0] <= x) {
            total += m[0];
            cnt++;
        } total + m[0] <= x total + m[0] total m[0] m 0 x {
            total += m[0];
            cnt++;
        } total += m[0] total m[0] m 0 cnt++ cnt System.out.print(cnt) System.out.print System.out System System.out cnt 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 = new int[n];

        int cnt = 0;
        int total = 0;
        for (int i = 0; i < n; i++) {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        }

        Arrays.sort(m);

        while (total + m[0] <= x) {
            total += m[0];
            cnt++;
        }

        System.out.print(cnt);
    }
} 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 = new int[n];

        int cnt = 0;
        int total = 0;
        for (int i = 0; i < n; i++) {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        }

        Arrays.sort(m);

        while (total + m[0] <= x) {
            total += m[0];
            cnt++;
        }

        System.out.print(cnt);
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

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 = new int[n];

        int cnt = 0;
        int total = 0;
        for (int i = 0; i < n; i++) {
            m[i] = sc.nextInt();
            cnt++;
            total += m[i];
        }

        Arrays.sort(m);

        while (total + m[0] <= x) {
            total += m[0];
            cnt++;
        }

        System.out.print(cnt);
    }
}
