#include <bits/stdc++.h>
const double eps = (1e-9);
using namespace std;
int dcmp(long double a, long double b) {
  return fabsl(a - b) <= eps ? 0 : (a > b) ? 1 : -1;
}
int getBit(long long num, int idx) { return ((num >> idx) & 1ll) == 1; }
int setBit1(int num, int idx) { return num | (1 << idx); }
long long setBit0(long long num, int idx) { return num & ~(1ll << idx); }
long long flipBit(long long num, int idx) { return num ^ (1ll << idx); }
void M() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int countNumBit1(int mask) {
  int ret = 0;
  while (mask) {
    mask &= (mask - 1);
    ++ret;
  }
  return ret;
}
int n, x1, x2;
vector<pair<int, int> > v;
int main() {
  cin >> n >> x1 >> x2;
  int no;
  for (int i = 0; i < n; i++) {
    cin >> no;
    v.push_back(make_pair(no, i + 1));
  }
  sort(((v).begin()), ((v).end()));
  int T = 2, f1, f2, t1, t2;
  while (T--) {
    int id = 1, mi = -1;
    for (int i = n - 1; i >= 0; i--) {
      int val = x2 / id + (x2 % id != 0);
      if (v[i].first >= val) {
        mi = n - id;
        break;
      } else {
        id++;
      }
    }
    id = 1;
    bool ok = 0;
    for (int i = 1; i <= n && !ok; i++) {
      int val = x1 / id + (x1 % id != 0);
      auto it = lower_bound(((v).begin()), ((v).end()), make_pair(val, -1));
      if (it == v.end()) {
        id++;
        continue;
      }
      int idx = it - v.begin();
      int to = idx + id - 1;
      if (to < mi) {
        ok = 1;
        f2 = mi;
        t2 = n - 1;
        f1 = idx;
        t1 = to;
      }
      id++;
    }
    if (ok && T == 1) {
      cout << "Yes\n";
      cout << t1 - f1 + 1 << " " << t2 - f2 + 1 << endl;
      for (int i = f1; i <= t1; i++) cout << v[i].second << " ";
      cout << endl;
      for (int i = f2; i <= t2; i++) cout << v[i].second << " ";
      cout << endl;
      return 0;
    } else if (ok && T == 0) {
      cout << "Yes\n";
      cout << t2 - f2 + 1 << " " << t1 - f1 + 1 << endl;
      for (int i = f2; i <= t2; i++) cout << v[i].second << " ";
      cout << endl;
      for (int i = f1; i <= t1; i++) cout << v[i].second << " ";
      cout << endl;
      return 0;
    }
    swap(x1, x2);
  }
  cout << "No\n";
}
