#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long i, n, x2, x1, k;
  bool ok1, ok2;
  ok1 = ok2 = false;
  cin >> n >> x1 >> x2;
  vector<pair<long long, long long>> a(n);
  vector<long long> x, y;
  for (i = 0; i < n; i++) {
    cin >> a[i].first;
    a[i].second = i;
  }
  sort(a.begin(), a.end());
  for (i = n - 1; i >= 0; i--) {
    x.push_back(a[i].second + 1);
    if ((n - i) * a[i].first >= x2) {
      k = i;
      ok1 = true;
      break;
    }
  }
  for (i = k - 1; i >= 0; i--) {
    y.push_back(a[i].second + 1);
    if ((k - i) * a[i].first >= x1) {
      ok2 = true;
      break;
    }
  }
  if (ok1 && ok2) {
    cout << "Yes" << endl;
  } else {
    ok1 = ok2 = false;
    x.clear();
    y.clear();
    for (i = n - 1; i >= 0; i--) {
      y.push_back(a[i].second + 1);
      if ((n - i) * a[i].first >= x1) {
        k = i;
        ok1 = true;
        break;
      }
    }
    for (i = k - 1; i >= 0; i--) {
      x.push_back(a[i].second + 1);
      if ((k - i) * a[i].first >= x2) {
        ok2 = true;
        break;
      }
    }
    if (ok1 && ok2) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << y.size() << " " << x.size() << endl;
  for (i = 0; i < y.size(); i++) {
    cout << y[i] << " ";
  }
  cout << endl;
  for (i = 0; i < x.size(); i++) {
    cout << x[i] << " ";
  }
  cout << endl;
  return 0;
}
