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 = new int[N];
        int M = 0;
        int ans = 0;
        int min = X;

        for(int i=0; i<N; i++){
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        }
        for(int i=0; i<X; i++){
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        }
        System.out.println(ans);
    }
} 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 = new int[N];
        int M = 0;
        int ans = 0;
        int min = X;

        for(int i=0; i<N; i++){
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        }
        for(int i=0; i<X; i++){
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        }
        System.out.println(ans);
    }
} 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 M = 0;
        int ans = 0;
        int min = X;

        for(int i=0; i<N; i++){
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        }
        for(int i=0; i<X; i++){
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int X = sc.nextInt();
        int[] m = new int[N];
        int M = 0;
        int ans = 0;
        int min = X;

        for(int i=0; i<N; i++){
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        }
        for(int i=0; i<X; i++){
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        }
        System.out.println(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 int[] m = new int[N]; m new int[N] N int M = 0; M 0 int ans = 0; ans 0 int min = X; min X for(int i=0; i<N; i++){
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        } {
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        } m[i] = sc.nextInt() m[i] m i sc.nextInt() sc.nextInt sc min = Math.min(min, m[i]) min Math.min(min, m[i]) Math.min Math min m[i] m i M += m[i] M m[i] m i ans += 1 ans 1 for(int i=0; i<X; i++){
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        } int i=0; int i=0; i 0 i<X i X i++ i++ i {
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        } {
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        } if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            } X-M>=min X-M X M min {
                M += min;
                ans += 1;
            } M += min M min ans += 1 ans 1 {
                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);

        int N = sc.nextInt();
        int X = sc.nextInt();
        int[] m = new int[N];
        int M = 0;
        int ans = 0;
        int min = X;

        for(int i=0; i<N; i++){
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        }
        for(int i=0; i<X; i++){
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        }
        System.out.println(ans);
    }
} 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 M = 0;
        int ans = 0;
        int min = X;

        for(int i=0; i<N; i++){
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        }
        for(int i=0; i<X; i++){
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        }
        System.out.println(ans);
    }
} 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 = new int[N];
        int M = 0;
        int ans = 0;
        int min = X;

        for(int i=0; i<N; i++){
            m[i] = sc.nextInt();
            min = Math.min(min, m[i]);
            M += m[i];
            ans += 1;
        }
        for(int i=0; i<X; i++){
            if(X-M>=min){
                M += min;
                ans += 1;
            }
            else{
                break;
            }
        }
        System.out.println(ans);
    }
}