import java.util.ArrayList;
import java.util.Collections;
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();
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }
        int min = Collections.min(list);
        Collections.sort(list);
        int tmp = x;
        for (int i = 0; i < n; i++) {
            tmp -= list.get(i);
        }
        int ans = n;
        while(true) {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections 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();
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }
        int min = Collections.min(list);
        Collections.sort(list);
        int tmp = x;
        for (int i = 0; i < n; i++) {
            tmp -= list.get(i);
        }
        int ans = n;
        while(true) {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }
        int min = Collections.min(list);
        Collections.sort(list);
        int tmp = x;
        for (int i = 0; i < n; i++) {
            tmp -= list.get(i);
        }
        int ans = n;
        while(true) {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }
        int min = Collections.min(list);
        Collections.sort(list);
        int tmp = x;
        for (int i = 0; i < n; i++) {
            tmp -= list.get(i);
        }
        int ans = n;
        while(true) {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        }
    } 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 ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            list.add(sc.nextInt());
        } {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc int min = Collections.min(list); min Collections.min(list) Collections.min Collections list Collections.sort(list) Collections.sort Collections list int tmp = x; tmp x for (int i = 0; i < n; i++) {
            tmp -= list.get(i);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            tmp -= list.get(i);
        } {
            tmp -= list.get(i);
        } tmp -= list.get(i) tmp list.get(i) list.get list i int ans = n; ans n while(true) {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        } true {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        } if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            } tmp < 0 tmp 0 {
                System.out.println(ans - 1);
                return;
            } System.out.println(ans - 1) System.out.println System.out System System.out ans - 1 ans 1 return; {
                tmp -= min;
                ans++;
            } tmp -= min tmp min ans++ ans 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();
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }
        int min = Collections.min(list);
        Collections.sort(list);
        int tmp = x;
        for (int i = 0; i < n; i++) {
            tmp -= list.get(i);
        }
        int ans = n;
        while(true) {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }
        int min = Collections.min(list);
        Collections.sort(list);
        int tmp = x;
        for (int i = 0; i < n; i++) {
            tmp -= list.get(i);
        }
        int ans = n;
        while(true) {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        }
    }
} Main
import java.util.ArrayList;
import java.util.Collections;
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();
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }
        int min = Collections.min(list);
        Collections.sort(list);
        int tmp = x;
        for (int i = 0; i < n; i++) {
            tmp -= list.get(i);
        }
        int ans = n;
        while(true) {
            if(tmp < 0) {
                System.out.println(ans - 1);
                return;
            } else {
                tmp -= min;
                ans++;
            }
        }
    }
}