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

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];
        for(int i=0; i<n; i++) {
            m[i] = sc.nextInt();
        }

        int sum = 0;
        for(int i: m) {
            sum += i;
        }

        Arrays.sort(m);

        int rest = 0;
        if(x - sum > 0) {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } else {
            System.out.println(n);
        }
        sc.close();
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays 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];
        for(int i=0; i<n; i++) {
            m[i] = sc.nextInt();
        }

        int sum = 0;
        for(int i: m) {
            sum += i;
        }

        Arrays.sort(m);

        int rest = 0;
        if(x - sum > 0) {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } else {
            System.out.println(n);
        }
        sc.close();
    }
} 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];
        for(int i=0; i<n; i++) {
            m[i] = sc.nextInt();
        }

        int sum = 0;
        for(int i: m) {
            sum += i;
        }

        Arrays.sort(m);

        int rest = 0;
        if(x - sum > 0) {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } else {
            System.out.println(n);
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x = sc.nextInt();

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

        int sum = 0;
        for(int i: m) {
            sum += i;
        }

        Arrays.sort(m);

        int rest = 0;
        if(x - sum > 0) {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } else {
            System.out.println(n);
        }
        sc.close();
    } 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 for(int i=0; i<n; i++) {
            m[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            m[i] = sc.nextInt();
        } {
            m[i] = sc.nextInt();
        } m[i] = sc.nextInt() m[i] m i sc.nextInt() sc.nextInt sc int sum = 0; sum 0 for(int i: m) {
            sum += i;
        } int i m {
            sum += i;
        } {
            sum += i;
        } sum += i sum i Arrays.sort(m) Arrays.sort Arrays m int rest = 0; rest 0 if(x - sum > 0) {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } else {
            System.out.println(n);
        } x - sum > 0 x - sum x sum 0 {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } rest = (x-sum) / m[0] rest (x-sum) / m[0] (x-sum) x sum m[0] m 0 System.out.println(rest+n) System.out.println System.out System System.out rest+n rest n {
            System.out.println(n);
        } System.out.println(n) System.out.println System.out System System.out n 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 = new int[n];
        for(int i=0; i<n; i++) {
            m[i] = sc.nextInt();
        }

        int sum = 0;
        for(int i: m) {
            sum += i;
        }

        Arrays.sort(m);

        int rest = 0;
        if(x - sum > 0) {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } else {
            System.out.println(n);
        }
        sc.close();
    }
} 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];
        for(int i=0; i<n; i++) {
            m[i] = sc.nextInt();
        }

        int sum = 0;
        for(int i: m) {
            sum += i;
        }

        Arrays.sort(m);

        int rest = 0;
        if(x - sum > 0) {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } else {
            System.out.println(n);
        }
        sc.close();
    }
} Main
import java.util.Scanner;
import java.util.Arrays;

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];
        for(int i=0; i<n; i++) {
            m[i] = sc.nextInt();
        }

        int sum = 0;
        for(int i: m) {
            sum += i;
        }

        Arrays.sort(m);

        int rest = 0;
        if(x - sum > 0) {
            rest = (x-sum) / m[0];
            System.out.println(rest+n);
        } else {
            System.out.println(n);
        }
        sc.close();
    }
}
