#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 10;
pair<int, int> c[N];
int need1[N], need2[N];
vector<int> ans1, ans2;
int n, b;
bool f1() {
  for (int i = b; i <= n; i++) {
    if (need1[i] <= i - b + 1) {
      for (int j = b; j <= i; j++) {
        ans1.push_back(c[j].second);
      }
      b = i + 1;
      return 1;
    }
  }
  return 0;
}
bool f2() {
  for (int i = b; i <= n; i++) {
    if (need2[i] <= i - b + 1) {
      for (int j = b; j <= i; j++) {
        ans2.push_back(c[j].second);
      }
      b = i + 1;
      return 1;
    }
  }
  return 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  int x1, x2;
  cin >> n >> x1 >> x2;
  for (int i = 1; i <= n; i++) {
    cin >> c[i].first;
    c[i].second = i;
  }
  sort(c + 1, c + n + 1);
  reverse(c + 1, c + n + 1);
  for (int i = 1; i <= n; i++) {
    need1[i] = x1 / c[i].first;
    if (x1 % c[i].first) {
      need1[i]++;
    }
    need2[i] = x2 / c[i].first;
    if (x2 % c[i].first) {
      need2[i]++;
    }
  }
  b = 1;
  if (!f1() || !f2()) {
    ans1.clear();
    ans2.clear();
    b = 1;
    if (!f2() || !f1()) {
      cout << "No\n";
      return 0;
    }
  }
  cout << "Yes\n";
  cout << ans1.size() << " " << ans2.size() << "\n";
  for (auto x : ans1) {
    cout << x << " ";
  }
  cout << "\n";
  for (auto x : ans2) {
    cout << x << " ";
  }
  cout << "\n";
  return 0;
}
