import java.io.FileInputStream;
import java.util.*;
class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt(), K = sc.nextInt();
int[] coinType = new int[N];
for(int i = 0; i < N; i++)
coinType[i] = sc.nextInt();
int count = 0;
for(int i = N - 1; i >= 0; i--) {
if(coinType[i] <= K) {
count += K / coinType[i];
K %= coinType[i];
}
}
System.out.println(count);
}
}
import java.util.*;
class Main {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int[] time = new int[N];
for(int i = 0; i < N; i++) {
time[i] = scan.nextInt();
}
Arrays.sort(time);
int sum = 0;
for(int i = 0; i < N; i++) {
sum += time[i] * (N-i);
}
System.out.println(sum);
}
}