#include <bits/stdc++.h>
using namespace std;
void __print(long long x) { cerr << x; }
void __print(float x) { cerr << x; }
void __print(double x) { cerr << x; }
void __print(long double x) { cerr << x; }
void __print(char x) { cerr << '\'' << x << '\''; }
void __print(const char *x) { cerr << '\"' << x << '\"'; }
void __print(const string &x) { cerr << '\"' << x << '\"'; }
void __print(bool x) { cerr << (x ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &x) {
  cerr << '{';
  __print(x.first);
  cerr << ',';
  __print(x.second);
  cerr << '}';
}
template <typename T>
void __print(const T &x) {
  long long f = 0;
  cerr << '{';
  for (auto &i : x) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
template <long long D, typename T>
struct vec : public vector<vec<D - 1, T>> {
  static_assert(D >= 1, "Vector dimension must be greater than zero!");
  template <typename... Args>
  vec(long long n = 0, Args... args)
      : vector<vec<D - 1, T>>(n, vec<D - 1, T>(args...)) {}
};
template <typename T>
struct vec<1, T> : public vector<T> {
  vec(long long n = 0, const T &val = T()) : vector<T>(n, val) {}
};
const long long gf = 1e6 + 9;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  long long n, x, y;
  cin >> n >> x >> y;
  long long a[n];
  vector<pair<long long, long long>> v;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    v.push_back({a[i], i + 1});
  }
  sort(v.begin(), v.end());
  long long k1 = 0;
  long long k2 = 0;
  long long i;
  i = n - 1;
  bool v1 = 0, v2 = 0;
  vector<long long> vv1, vv2;
  while (i >= 0) {
    k1++;
    vv1.push_back(v[i].second);
    if ((x + k1 - 1) / k1 <= v[i].first) {
      v1 = true;
      i--;
      break;
    }
    i--;
  };
  while (i >= 0) {
    k2++;
    vv2.push_back(v[i].second);
    ;
    if ((y + k2 - 1) / k2 <= v[i].first) {
      v2 = true;
      i--;
      ;
      break;
    }
    i--;
  };
  if (v1 == 1 && v2 == 1) {
    cout << "Yes" << '\n';
    cout << k1 << " " << k2 << '\n';
    for (long long x : vv1) cout << x << " ";
    cout << '\n';
    for (long long x : vv2) cout << x << " ";
    cout << '\n';
    return 0;
  }
  vv1.clear();
  vv2.clear();
  i = n - 1;
  v1 = 0;
  v2 = 0;
  k1 = 0, k2 = 0;
  while (i >= 0) {
    k2++;
    vv2.push_back(v[i].second);
    if ((y + k2 - 1) / k2 <= v[i].first) {
      v2 = true;
      i--;
      ;
      break;
    }
    i--;
  }
  while (i >= 0) {
    k1++;
    vv1.push_back(v[i].second);
    if ((x + k1 - 1) / k1 <= v[i].first) {
      v1 = true;
      i--;
      break;
    }
    i--;
  };
  if (v1 == 1 && v2 == 1) {
    cout << "Yes" << '\n';
    cout << k1 << " " << k2 << '\n';
    for (long long x : vv1) cout << x << " ";
    cout << '\n';
    for (long long x : vv2) cout << x << " ";
    cout << '\n';
    return 0;
  }
  cout << "No" << '\n';
  return 0;
}
