#include <bits/stdc++.h>
using namespace std;
int n, x1, x2;
pair<int, int> a[300005], b[300005], c[300005];
int main() {
  scanf("%d%d%d", &n, &x1, &x2);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i].first);
    a[i].second = i;
  }
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    int mink = (int)ceil(x2 * 1.0 / a[i].first);
    b[i].first = n - i - mink;
    b[i].second = i;
    if (i && b[i - 1] >= b[i]) b[i] = b[i - 1];
  }
  bool ok = 0;
  for (int i = n - 1; i >= 0; i--) {
    int tar = (int)ceil(x2 * 1.0 / (n - i));
    if (a[i].first >= tar) ok = 1;
    c[i].first = ok;
    c[i].second = i;
    if (i != n - 1 && c[i + 1].first == 1) c[i] = c[i + 1];
  }
  for (int i = 1; i <= n - 1; i++) {
    int tar = (int)ceil(x1 * 1.0 / i);
    if (a[n - i].first < tar) continue;
    int lb = -1;
    int ub = n - i;
    while (ub - lb > 1) {
      int mid = (lb + ub) / 2;
      if (a[mid].first >= tar)
        ub = mid;
      else
        lb = mid;
    }
    if (ub + i < n && c[ub + i].first) {
      printf("Yes\n");
      printf("%d %d\n", i, n - c[ub + i].second);
      for (int j = ub; j <= ub + i - 1; j++) {
        if (j == ub)
          printf("%d", a[j].second + 1);
        else
          printf(" %d", a[j].second + 1);
      }
      printf("\n");
      for (int j = c[ub + i].second; j < n; j++) {
        if (j == c[ub + i].second)
          printf("%d", a[j].second + 1);
        else
          printf(" %d", a[j].second + 1);
      }
      printf("\n");
      return 0;
    }
    if (ub - 1 >= 0 && i <= b[ub - 1].first) {
      printf("Yes\n");
      printf("%d %d\n", i, n - b[ub - 1].second - i);
      for (int j = ub; j <= ub + i - 1; j++) {
        if (j == ub)
          printf("%d", a[j].second + 1);
        else
          printf(" %d", a[j].second + 1);
      }
      printf("\n");
      for (int j = b[ub - 1].second; j < n; j++) {
        if (j >= ub && j <= ub + i - 1) continue;
        if (j == b[ub - 1].second)
          printf("%d", a[j].second + 1);
        else
          printf(" %d", a[j].second + 1);
      }
      printf("\n");
      return 0;
    }
  }
  printf("No\n");
}
