import java.util.Scanner;
import java.util.Arrays;
import java.util.Collections;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int quantity = scanner.nextInt();
        Integer[] cakes = new Integer[givenNumber];
        int sumCakesQuantity = 0;
        for(int i=0; i<givenNumber; i++) {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        }

        int quantityLeft = quantity - sumCakesQuantity;
        int maxCakes = 0;
        if(quantityLeft > 0) {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        }
        System.out.println(givenNumber + maxCakes);
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int quantity = scanner.nextInt();
        Integer[] cakes = new Integer[givenNumber];
        int sumCakesQuantity = 0;
        for(int i=0; i<givenNumber; i++) {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        }

        int quantityLeft = quantity - sumCakesQuantity;
        int maxCakes = 0;
        if(quantityLeft > 0) {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        }
        System.out.println(givenNumber + maxCakes);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int quantity = scanner.nextInt();
        Integer[] cakes = new Integer[givenNumber];
        int sumCakesQuantity = 0;
        for(int i=0; i<givenNumber; i++) {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        }

        int quantityLeft = quantity - sumCakesQuantity;
        int maxCakes = 0;
        if(quantityLeft > 0) {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        }
        System.out.println(givenNumber + maxCakes);
    } main {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int quantity = scanner.nextInt();
        Integer[] cakes = new Integer[givenNumber];
        int sumCakesQuantity = 0;
        for(int i=0; i<givenNumber; i++) {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        }

        int quantityLeft = quantity - sumCakesQuantity;
        int maxCakes = 0;
        if(quantityLeft > 0) {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        }
        System.out.println(givenNumber + maxCakes);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int givenNumber = scanner.nextInt(); givenNumber scanner.nextInt() scanner.nextInt scanner int quantity = scanner.nextInt(); quantity scanner.nextInt() scanner.nextInt scanner Integer[] cakes = new Integer[givenNumber]; cakes new Integer[givenNumber] givenNumber int sumCakesQuantity = 0; sumCakesQuantity 0 for(int i=0; i<givenNumber; i++) {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        } int i=0; int i=0; i 0 i<givenNumber i givenNumber i++ i++ i {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        } {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        } cakes[i] = scanner.nextInt() cakes[i] cakes i scanner.nextInt() scanner.nextInt scanner sumCakesQuantity += cakes[i] sumCakesQuantity cakes[i] cakes i int quantityLeft = quantity - sumCakesQuantity; quantityLeft quantity - sumCakesQuantity quantity sumCakesQuantity int maxCakes = 0; maxCakes 0 if(quantityLeft > 0) {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        } quantityLeft > 0 quantityLeft 0 {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        } maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes)) maxCakes quantityLeft / Collections.min(Arrays.asList(cakes)) quantityLeft Collections.min(Arrays.asList(cakes)) Collections.min Collections Arrays.asList(cakes) Arrays.asList Arrays cakes System.out.println(givenNumber + maxCakes) System.out.println System.out System System.out givenNumber + maxCakes givenNumber maxCakes String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int quantity = scanner.nextInt();
        Integer[] cakes = new Integer[givenNumber];
        int sumCakesQuantity = 0;
        for(int i=0; i<givenNumber; i++) {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        }

        int quantityLeft = quantity - sumCakesQuantity;
        int maxCakes = 0;
        if(quantityLeft > 0) {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        }
        System.out.println(givenNumber + maxCakes);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int quantity = scanner.nextInt();
        Integer[] cakes = new Integer[givenNumber];
        int sumCakesQuantity = 0;
        for(int i=0; i<givenNumber; i++) {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        }

        int quantityLeft = quantity - sumCakesQuantity;
        int maxCakes = 0;
        if(quantityLeft > 0) {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        }
        System.out.println(givenNumber + maxCakes);
    }
} Main
import java.util.Scanner;
import java.util.Arrays;
import java.util.Collections;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int quantity = scanner.nextInt();
        Integer[] cakes = new Integer[givenNumber];
        int sumCakesQuantity = 0;
        for(int i=0; i<givenNumber; i++) {
            cakes[i] = scanner.nextInt();
            sumCakesQuantity += cakes[i];
        }

        int quantityLeft = quantity - sumCakesQuantity;
        int maxCakes = 0;
        if(quantityLeft > 0) {
            maxCakes = quantityLeft / Collections.min(Arrays.asList(cakes));;
        }
        System.out.println(givenNumber + maxCakes);
    }
}
