#include <bits/stdc++.h>
using namespace std;
int n, a, b;
int h[15];
int best_fireball = 1e6;
int best_ans[15];
int cur_fireball = 0;
int cur_ans[15];
void solve(int id) {
  if (cur_fireball > 100) {
    return;
  }
  if (id == n) {
    if (h[n - 1] >= 0 || h[n] >= 0) return;
    if (cur_fireball < best_fireball) {
      best_fireball = cur_fireball;
      for (int i = 1; i <= n; i++) {
        best_ans[i] = cur_ans[i];
      }
    }
    return;
  }
  int most = 0;
  most = max(most, (h[id - 1] + b) / b);
  most = max(most, (h[id] + a) / a);
  most = max(most, (h[id + 1] + b) / b);
  if (id != 2 && id != n - 1) most = min(most, 8);
  for (int i = 0; i <= most; i++) {
    h[id - 1] -= b * i;
    h[id] -= a * i;
    h[id + 1] -= b * i;
    if (h[id - 1] < 0) {
      cur_fireball += i;
      cur_ans[id] = i;
      solve(id + 1);
      cur_fireball -= i;
    }
    h[id - 1] += b * i;
    h[id] += a * i;
    h[id + 1] += b * i;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> a >> b;
  for (int i = 1; i <= n; i++) {
    cin >> h[i];
  }
  solve(2);
  cout << best_fireball << "\n";
  for (int i = 1; i <= n; i++) {
    for (int j = 0; j < best_ans[i]; j++) {
      cout << i << " ";
    }
  }
  cout << "\n";
  return 0;
}
