#include <bits/stdc++.h>
using namespace std;
const int sze = 1 << 17, INF = 1e9 + 10, psze = 26;
vector<pair<int, int>> values;
vector<int> pref, suf;
vector<int> sec_vl;
vector<int> cnt;
int n, x1, x2, sec;
bool solution(int l, int r) {
  bool label = 0;
  if (r + 1 != n && suf[r + 1]) {
    for (int i = r + 1; i < n; ++i) {
      if (cnt[i]) {
        label = 1;
        sec = n - i;
        for (int j = i; j < n; ++j) sec_vl.push_back(values[j].second + 1);
        return label;
      }
    }
  }
  if (l && pref[l - 1] - 1 >= r - l + 1) {
    for (int i = l - 1; i >= 0; --i) {
      if (cnt[i] - 1 >= r - l + 1) {
        label = 1;
        for (int j = i; j < l; ++j) sec_vl.push_back(values[j].second + 1);
        for (int j = r + 1; j < n; ++j) sec_vl.push_back(values[j].second + 1);
        sec = l - i + n - r - 1;
        break;
        cout << '\n';
      }
    }
  }
  return label;
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> x1 >> x2;
  values.resize(n);
  cnt.resize(n);
  pref.resize(n);
  suf.resize(n);
  for (int i = 0; i < n; ++i) {
    cin >> values[i].first;
    values[i].second = i;
  }
  sort(values.begin(), values.end());
  for (int i = n - 1; i >= 0; --i) {
    int l = 0, r = n + 1;
    while (r - l > 1) {
      int m = (l + r) >> 1;
      if (values[i].first >= x2 / m + int(x2 % m != 0))
        r = m;
      else
        l = m;
    }
    if (r != n + 1) {
      cnt[i] = max(n - i - r + 1, 0);
      pref[i] = cnt[i];
      suf[i] = cnt[i];
    }
  }
  for (int i = 1; i < n; ++i) pref[i] = max(pref[i], pref[i - 1]);
  for (int i = n - 2; i >= 0; --i) suf[i] = max(suf[i], suf[i + 1]);
  for (int i = 1; i <= n; ++i) {
    int vl = x1 / i + int(x1 % i != 0);
    int l = -1, r = n;
    while (r - l > 1) {
      int m = (l + r) >> 1;
      if (values[m].first >= vl)
        r = m;
      else
        l = m;
    }
    if (r == n) continue;
    int left = r;
    if (n - left >= i) {
      bool label = solution(left, left + i - 1);
      if (label) {
        cout << "Yes\n" << i << ' ' << sec << '\n';
        for (int j = 0; j < i; ++j) cout << values[j + left].second + 1 << ' ';
        cout << '\n';
        for (int v : sec_vl) cout << v << ' ';
        return 0;
      }
    }
  }
  cout << "No\n";
  return 0;
}
