#include <bits/stdc++.h>
using namespace std;
string i2s(long long x) {
  ostringstream o;
  o << x;
  return o.str();
}
long long s2i(string s) {
  istringstream i(s);
  long long x;
  i >> x;
  return x;
}
int n, b, a;
int h[15];
vector<int> res, z;
void initialize() {
  cin >> n >> a >> b;
  for (int i = 1; i <= n; i++) cin >> h[i];
}
void go(int i) {
  if (h[i - 1] >= 0) {
    h[i - 1] -= b;
    h[i] -= a;
    h[i + 1] -= b;
    z.push_back(i);
    go(i);
    h[i - 1] += b;
    h[i] += a;
    h[i + 1] += b;
    z.pop_back();
    return;
  }
  if (i == n - 1) {
    if (h[i - 1] < 0 && h[i] < 0 && h[i + 1] < 0) {
      if (res.empty() || res.size() > z.size()) res = z;
      return;
    }
  }
  if (i + 1 < n) go(i + 1);
  if (h[i] >= 0 || (i == n - 1 && h[n] >= 0)) {
    h[i - 1] -= b;
    h[i] -= a;
    h[i + 1] -= b;
    z.push_back(i);
    go(i);
    z.pop_back();
    h[i - 1] += b;
    h[i] += a;
    h[i + 1] += b;
  }
}
void solve() {
  go(2);
  cout << res.size() << endl;
  for (int i = 0; i < res.size(); i++) cout << res[i] << " ";
}
int main() {
  initialize();
  solve();
  return 0;
}
