import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int sum = sc.nextInt();
    int g = sc.nextInt();
    int[] donutsG = new int[sum]; 
    
    int canMake = 0; 
    for(int i = 0; i< sum ; i++){
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    }
    Arrays.sort(donutsG);
    
    while(g >= donutsG[0]){
      ++canMake;
      g= g-donutsG[0];
    }
    System.out.println(canMake);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int sum = sc.nextInt();
    int g = sc.nextInt();
    int[] donutsG = new int[sum]; 
    
    int canMake = 0; 
    for(int i = 0; i< sum ; i++){
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    }
    Arrays.sort(donutsG);
    
    while(g >= donutsG[0]){
      ++canMake;
      g= g-donutsG[0];
    }
    System.out.println(canMake);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int sum = sc.nextInt();
    int g = sc.nextInt();
    int[] donutsG = new int[sum]; 
    
    int canMake = 0; 
    for(int i = 0; i< sum ; i++){
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    }
    Arrays.sort(donutsG);
    
    while(g >= donutsG[0]){
      ++canMake;
      g= g-donutsG[0];
    }
    System.out.println(canMake);
  } main {
    Scanner sc = new Scanner(System.in);
    
    int sum = sc.nextInt();
    int g = sc.nextInt();
    int[] donutsG = new int[sum]; 
    
    int canMake = 0; 
    for(int i = 0; i< sum ; i++){
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    }
    Arrays.sort(donutsG);
    
    while(g >= donutsG[0]){
      ++canMake;
      g= g-donutsG[0];
    }
    System.out.println(canMake);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int sum = sc.nextInt(); sum sc.nextInt() sc.nextInt sc int g = sc.nextInt(); g sc.nextInt() sc.nextInt sc int[] donutsG = new int[sum]; donutsG new int[sum] sum int canMake = 0; canMake 0 for(int i = 0; i< sum ; i++){
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    } int i = 0; int i = 0; i 0 i< sum i sum i++ i++ i {
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    } {
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    } donutsG[i] = sc.nextInt() donutsG[i] donutsG i sc.nextInt() sc.nextInt sc if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        } donutsG[i]<=g donutsG[i] donutsG i g {
      	g = g-donutsG[i];
        ++canMake;
        } g = g-donutsG[i] g g-donutsG[i] g donutsG[i] donutsG i ++canMake canMake Arrays.sort(donutsG) Arrays.sort Arrays donutsG while(g >= donutsG[0]){
      ++canMake;
      g= g-donutsG[0];
    } g >= donutsG[0] g donutsG[0] donutsG 0 {
      ++canMake;
      g= g-donutsG[0];
    } ++canMake canMake g= g-donutsG[0] g g-donutsG[0] g donutsG[0] donutsG 0 System.out.println(canMake) System.out.println System.out System System.out canMake String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int sum = sc.nextInt();
    int g = sc.nextInt();
    int[] donutsG = new int[sum]; 
    
    int canMake = 0; 
    for(int i = 0; i< sum ; i++){
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    }
    Arrays.sort(donutsG);
    
    while(g >= donutsG[0]){
      ++canMake;
      g= g-donutsG[0];
    }
    System.out.println(canMake);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int sum = sc.nextInt();
    int g = sc.nextInt();
    int[] donutsG = new int[sum]; 
    
    int canMake = 0; 
    for(int i = 0; i< sum ; i++){
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    }
    Arrays.sort(donutsG);
    
    while(g >= donutsG[0]){
      ++canMake;
      g= g-donutsG[0];
    }
    System.out.println(canMake);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int sum = sc.nextInt();
    int g = sc.nextInt();
    int[] donutsG = new int[sum]; 
    
    int canMake = 0; 
    for(int i = 0; i< sum ; i++){
      donutsG[i] = sc.nextInt();
      if(donutsG[i]<=g){
      	g = g-donutsG[i];
        ++canMake;
        }
    }
    Arrays.sort(donutsG);
    
    while(g >= donutsG[0]){
      ++canMake;
      g= g-donutsG[0];
    }
    System.out.println(canMake);
  }
}