#include <bits/stdc++.h>
const long long inf = 9999999999;
using namespace std;
pair<long long, int> c[300100];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, x, y;
  cin >> n >> x >> y;
  for (long long i = 0; i < n; i++) {
    long long uu;
    cin >> uu;
    c[i] = {uu, i + 1};
  }
  sort(c, c + n);
  for (long long i = 0; i < n; i++) {
    long long tx = (x + c[i].first - 1) / c[i].first + i;
    if (tx >= n) continue;
    for (long long j = tx; j < n; j++) {
      long long ty = (y + c[j].first - 1) / c[j].first + j;
      if (ty > n) continue;
      cout << "Yes" << endl;
      cout << tx - i << ' ' << ty - j << endl;
      for (long long w = i; w < tx; w++) cout << c[w].second << ' ';
      cout << endl;
      for (long long w = tx; w < ty; w++) cout << c[w].second << ' ';
      return 0;
    }
  }
  long long r = x;
  x = y;
  y = r;
  for (long long i = 0; i < n; i++) {
    long long tx = (x + c[i].first - 1) / c[i].first + i;
    if (tx >= n) continue;
    for (long long j = tx; j < n; j++) {
      long long ty = (y + c[j].first - 1) / c[j].first + j;
      if (ty > n) continue;
      cout << "Yes" << endl;
      cout << ty - j << ' ' << tx - i << endl;
      for (long long w = tx; w < ty; w++) cout << c[w].second << ' ';
      cout << endl;
      for (long long w = i; w < tx; w++) cout << c[w].second << ' ';
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
