#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"n,a,b,*h=map(int,open(0).read().split());i,j=0,2**30\n"
"while j-i>1:\n"
" k=c=(j+i)//2\n"
" for t in h:c+=min(0,(b*k-t)//(a-b))\n"
" if c<0:i=k\n"
" else:j=k\n"
"print(j)\n"
"\"";
  system(s);
  return 0;
}            