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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), x = sc.nextInt();//,c=sc.nextInt(),k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[n];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		}
		Arrays.sort(array);
		while(x-sum>0) {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		}

		System.out.println(count);
	}
	public static int sample(int n) {
		return n;
	}

} import java.util.Arrays; Arrays 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(), x = sc.nextInt();//,c=sc.nextInt(),k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[n];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		}
		Arrays.sort(array);
		while(x-sum>0) {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		}

		System.out.println(count);
	}
	public static int sample(int n) {
		return n;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), x = sc.nextInt();//,c=sc.nextInt(),k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[n];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		}
		Arrays.sort(array);
		while(x-sum>0) {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		}

		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), x = sc.nextInt();//,c=sc.nextInt(),k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[n];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		}
		Arrays.sort(array);
		while(x-sum>0) {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		}

		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt() n sc.nextInt() sc.nextInt sc x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int sum=0 sum 0 count=0 count 0 flag=0 flag 0 max=-999999 max -999999 999999 min=99999; min 99999 int[] array=new int[n]; array new int[n] n for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		} {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		} array[i]=sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc sum+=array[i] sum array[i] array i count++ count Arrays.sort(array) Arrays.sort Arrays array while(x-sum>0) {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		} x-sum>0 x-sum x sum 0 {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		} sum+=array[0] sum array[0] array 0 if(x-sum<0)break; x-sum<0 x-sum x sum 0 break; count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public static int sample(int n) {
		return n;
	} sample {
		return n;
	} return n; n int n n public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), x = sc.nextInt();//,c=sc.nextInt(),k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[n];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		}
		Arrays.sort(array);
		while(x-sum>0) {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		}

		System.out.println(count);
	}
	public static int sample(int n) {
		return n;
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), x = sc.nextInt();//,c=sc.nextInt(),k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[n];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		}
		Arrays.sort(array);
		while(x-sum>0) {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		}

		System.out.println(count);
	}
	public static int sample(int n) {
		return n;
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), x = sc.nextInt();//,c=sc.nextInt(),k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[n];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<n;i++) {
			array[i]=sc.nextInt();
			sum+=array[i];
			count++;
		}
		Arrays.sort(array);
		while(x-sum>0) {
			sum+=array[0];
			if(x-sum<0)break;
			count++;
		}

		System.out.println(count);
	}
	public static int sample(int n) {
		return n;
	}

}
