#include <bits/stdc++.h>
using namespace std;
const long long INF = 2e9 + 13;
const long long MOD = 1e9 + 7;
int N;
long long x1, x2;
pair<long long, int> ar[300005];
void print(int ps1, int ps2, int t) {
  cout << "Yes" << endl;
  vector<int> v1, v2;
  if (t == 0) {
    for (int i = N - 1; i >= ps1; i--) v1.push_back(ar[i].second + 1);
    for (int i = ps1 - 1; i >= ps2; i--) v2.push_back(ar[i].second + 1);
    cout << v1.size() << ' ' << v2.size() << endl;
    for (auto v : v1) cout << v << ' ';
    cout << endl;
    for (auto v : v2) cout << v << ' ';
    cout << endl;
  } else {
    for (int i = N - 1; i >= ps1; i--) v2.push_back(ar[i].second + 1);
    for (int i = ps1 - 1; i >= ps2; i--) v1.push_back(ar[i].second + 1);
    cout << v1.size() << ' ' << v2.size() << endl;
    for (auto v : v1) cout << v << ' ';
    cout << endl;
    for (auto v : v2) cout << v << ' ';
    cout << endl;
  }
}
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> N >> x1 >> x2;
  for (int i = 0; i < N; i++) {
    cin >> ar[i].first;
    ar[i].second = i;
  }
  sort(ar, ar + N);
  int ps1 = -1;
  for (int i = N - 1; i >= 0; i--) {
    long long numIn = (long long)(N - i);
    long long mv = ar[i].first;
    if (mv * numIn >= x1) {
      ps1 = i;
      break;
    }
  }
  int ps2 = -1;
  if (ps1 != -1) {
    for (int i = ps1 - 1; i >= 0; i--) {
      long long numIn = (long long)(ps1 - i);
      long long mv = ar[i].first;
      if (mv * numIn >= x2) {
        ps2 = i;
        break;
      }
    }
    if (ps2 != -1) {
      print(ps1, ps2, 0);
      return 0;
    }
  }
  ps1 = -1;
  ps2 = -1;
  for (int i = N - 1; i >= 0; i--) {
    long long numIn = (long long)(N - i);
    long long mv = ar[i].first;
    if (mv * numIn >= x2) {
      ps1 = i;
      break;
    }
  }
  if (ps1 == -1) {
    cout << "No" << endl;
    return 0;
  }
  for (int i = ps1 - 1; i >= 0; i--) {
    long long numIn = (long long)(ps1 - i);
    long long mv = ar[i].first;
    if (mv * numIn >= x1) {
      ps2 = i;
      break;
    }
  }
  if (ps2 == -1) {
    cout << "No" << endl;
    return 0;
  }
  print(ps1, ps2, 1);
}
