#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"n,x=map(int,input().split())\n"
"m=x\n"
"for i in range(n):\n"
"  t=int(input())\n"
"  x-=t\n"
"  m=min(m,t)\n"
"print(n+x//m)\n"
"\"";
  system(s);
  return 0;
}            