#include <bits/stdc++.h>
using namespace std;
int n;
long long x1, x2;
pair<long long, long long> a[300100];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> x1 >> x2;
  for (int i = 1; i <= n; i++) {
    cin >> a[i].first;
    a[i].second = i;
  }
  sort(a + 1, a + n + 1);
  int k21 = 0, k22 = 0;
  for (int i = n; i >= 1; i--) {
    if ((x1 + (n - i + 1) - 1) / (n - i + 1) <= a[i].first && k21 == 0) {
      k21 = i;
    }
    if ((x2 + (n - i + 1) - 1) / (n - i + 1) <= a[i].first && k22 == 0) {
      k22 = i;
    }
  }
  if (k21 != 0) {
    for (long long i = 1; i <= n; i++) {
      int l = 1, r = n;
      while (r - l > 1) {
        int mid = (l + r) >> 1;
        if (a[i].first < (x2 + i - 1) / i)
          l = mid;
        else
          r = mid;
      }
      int pos = 0;
      if (a[l].first >= (x2 + i - 1) / i)
        pos = l;
      else if (a[r].first >= (x2 + i - 1) / i)
        pos = r;
      else
        continue;
      if (pos + i - 1 < k21) {
        cout << "Yes"
             << "\n"
             << (n - k21 + 1) << ' ' << i << "\n";
        for (int j = k21; j <= n; j++) cout << a[j].second << ' ';
        cout << "\n";
        for (int j = pos; j <= pos + i - 1; j++) cout << a[j].second << ' ';
        return 0;
      }
    }
  }
  if (k22 != 0) {
    for (long long i = 1; i <= n; i++) {
      int l = 1, r = n;
      while (r - l > 1) {
        int mid = (l + r) >> 1;
        if (a[i].first < (x1 + i - 1) / i)
          l = mid;
        else
          r = mid;
      }
      int pos = 0;
      if (a[l].first >= (x1 + i - 1) / i)
        pos = l;
      else if (a[r].first >= (x1 + i - 1) / i)
        pos = r;
      else
        continue;
      if (pos + i - 1 < k22) {
        cout << "Yes"
             << "\n"
             << i << ' ' << (n - k22 + 1) << "\n";
        for (int j = pos; j <= pos + i - 1; j++) cout << a[j].second << ' ';
        cout << "\n";
        for (int j = k22; j <= n; j++) cout << a[j].second << ' ';
        return 0;
      }
    }
  }
  cout << "No";
}
