import std.algorithm,
       std.string,
       std.range,
       std.stdio,
       std.conv;

void main() {
  long[] nab = readln.chomp.split.to!(long[]);
  long N = nab[0],
       A = nab[1],
       B = nab[2];
  long[] hs = N.iota.map!(_ => readln.chomp.to!long).array;
  long b, e = 10^^9;

  while (e - b > 1) {
    long t = (b + e) / 2;

    long sum;

    foreach (hi; hs) {
      if (hi - (t * B) > 0) {
        sum += (hi - (t * B) + (A - B - 1))/(A-B);
      }

      if (sum > t) {
        break;
      }
    }

    if (sum > t) {
      b = t;
    } else {
      e = t;
    }
  }

  writeln(e);
}
