

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNextInt()) {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        } sc.hasNextInt() sc.hasNextInt sc {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        } int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int sum = 0; sum 0 List<Integer> al = new ArrayList<>(); al new ArrayList<>() for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            } {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            } int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc al.add(m) al.add al m sum += m sum m X -= sum X sum Collections.sort(al) Collections.sort Collections al int ans = N; ans N while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            } X > 0 X 0 {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            } if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                } X >= al.get(0) X al.get(0) al.get al 0 {
                    X -= al.get(0);
                    ans++;
                } X -= al.get(0) X al.get(0) al.get al 0 ans++ ans {
                    break;
                } break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        }
    }
} Main


import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int N = sc.nextInt();
            int X = sc.nextInt();
            int sum = 0;
            List<Integer> al = new ArrayList<>();
            for (int i = 0; i < N; i++) {
                int m = sc.nextInt();
                al.add(m);
                sum += m;
            }
            X -= sum;

            Collections.sort(al);

            int ans = N;

            while (X > 0) {
                if ( X >= al.get(0) ) {
                    X -= al.get(0);
                    ans++;
                } else {
                    break;
                }
            }
            System.out.println(ans);
        }
    }
}
