import java.util.*;

import sun.font.TrueTypeFont;

import static java.lang.System.out;

public class Main{
   public static Scanner sc = new Scanner(System.in);
   public static void main(String args[]){
      // String str = sc.next();
      // int i = str.split("x").length;
      // out.println(700 + i * 100);

      int N = sc.nextInt();
      int gram = sc.nextInt();
      int[] array = new int[N];
      int count = N; //個数
      int cost = 0; //容量
      for (int i = 0; i < N; i++) {
          array[i] = sc.nextInt();
      }
      Arrays.sort(array);
      for(int make : array) {
         cost += make;
      }
      int row = array[0];
      while (row + cost <= gram) {
         cost += row;
         count++;
      }

      out.println(count);


   }

} import java.util.*; util.* java import sun.font.TrueTypeFont; TrueTypeFont sun.font import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; public class Main{
   public static Scanner sc = new Scanner(System.in);
   public static void main(String args[]){
      // String str = sc.next();
      // int i = str.split("x").length;
      // out.println(700 + i * 100);

      int N = sc.nextInt();
      int gram = sc.nextInt();
      int[] array = new int[N];
      int count = N; //個数
      int cost = 0; //容量
      for (int i = 0; i < N; i++) {
          array[i] = sc.nextInt();
      }
      Arrays.sort(array);
      for(int make : array) {
         cost += make;
      }
      int row = array[0];
      while (row + cost <= gram) {
         cost += row;
         count++;
      }

      out.println(count);


   }

} Main public static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String args[]){
      // String str = sc.next();
      // int i = str.split("x").length;
      // out.println(700 + i * 100);

      int N = sc.nextInt();
      int gram = sc.nextInt();
      int[] array = new int[N];
      int count = N; //個数
      int cost = 0; //容量
      for (int i = 0; i < N; i++) {
          array[i] = sc.nextInt();
      }
      Arrays.sort(array);
      for(int make : array) {
         cost += make;
      }
      int row = array[0];
      while (row + cost <= gram) {
         cost += row;
         count++;
      }

      out.println(count);


   } main {
      // String str = sc.next();
      // int i = str.split("x").length;
      // out.println(700 + i * 100);

      int N = sc.nextInt();
      int gram = sc.nextInt();
      int[] array = new int[N];
      int count = N; //個数
      int cost = 0; //容量
      for (int i = 0; i < N; i++) {
          array[i] = sc.nextInt();
      }
      Arrays.sort(array);
      for(int make : array) {
         cost += make;
      }
      int row = array[0];
      while (row + cost <= gram) {
         cost += row;
         count++;
      }

      out.println(count);


   } int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int gram = sc.nextInt(); gram sc.nextInt() sc.nextInt sc int[] array = new int[N]; array new int[N] N int count = N; count N int cost = 0; cost 0 for (int i = 0; i < N; i++) {
          array[i] = sc.nextInt();
      } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          array[i] = sc.nextInt();
      } {
          array[i] = sc.nextInt();
      } array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc Arrays.sort(array) Arrays.sort Arrays array for(int make : array) {
         cost += make;
      } int make array {
         cost += make;
      } {
         cost += make;
      } cost += make cost make int row = array[0]; row array[0] array 0 while (row + cost <= gram) {
         cost += row;
         count++;
      } row + cost <= gram row + cost row cost gram {
         cost += row;
         count++;
      } cost += row cost row count++ count out.println(count) out.println out count String args[] args public class Main{
   public static Scanner sc = new Scanner(System.in);
   public static void main(String args[]){
      // String str = sc.next();
      // int i = str.split("x").length;
      // out.println(700 + i * 100);

      int N = sc.nextInt();
      int gram = sc.nextInt();
      int[] array = new int[N];
      int count = N; //個数
      int cost = 0; //容量
      for (int i = 0; i < N; i++) {
          array[i] = sc.nextInt();
      }
      Arrays.sort(array);
      for(int make : array) {
         cost += make;
      }
      int row = array[0];
      while (row + cost <= gram) {
         cost += row;
         count++;
      }

      out.println(count);


   }

} public class Main{
   public static Scanner sc = new Scanner(System.in);
   public static void main(String args[]){
      // String str = sc.next();
      // int i = str.split("x").length;
      // out.println(700 + i * 100);

      int N = sc.nextInt();
      int gram = sc.nextInt();
      int[] array = new int[N];
      int count = N; //個数
      int cost = 0; //容量
      for (int i = 0; i < N; i++) {
          array[i] = sc.nextInt();
      }
      Arrays.sort(array);
      for(int make : array) {
         cost += make;
      }
      int row = array[0];
      while (row + cost <= gram) {
         cost += row;
         count++;
      }

      out.println(count);


   }

} Main
import java.util.*;

import sun.font.TrueTypeFont;

import static java.lang.System.out;

public class Main{
   public static Scanner sc = new Scanner(System.in);
   public static void main(String args[]){
      // String str = sc.next();
      // int i = str.split("x").length;
      // out.println(700 + i * 100);

      int N = sc.nextInt();
      int gram = sc.nextInt();
      int[] array = new int[N];
      int count = N; //個数
      int cost = 0; //容量
      for (int i = 0; i < N; i++) {
          array[i] = sc.nextInt();
      }
      Arrays.sort(array);
      for(int make : array) {
         cost += make;
      }
      int row = array[0];
      while (row + cost <= gram) {
         cost += row;
         count++;
      }

      out.println(count);


   }

}