#include<bits/stdc++.h>
#define int long long
using namespace std;





const int N = 3e5 + 5;



int n, A, B, suf[N], pref[N];
pair < int, int > a[N];



main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin >> n >> A >> B;
    for(int i = 1; i <= n; i++){
        cin >> a[i].first;
        a[i].second = i;
    }
    sort(a + 1, a + n + 1);
    pref[0] = suf[n + 1] = 2e9;
    for(int i = 1; i <= n; i++){
        pref[i] = min(pref[i - 1], a[i].first);
    }
    for(int i = n; i >= 1; i--){
        suf[i] = min(suf[i + 1], a[i].first);
    }
    /*for(int i = 1; i <= n; i++){
        cout << a[i].first << " ";
    }
    cout << "\n";
    for(int i = 1; i <= n; i++){
        cout << a[i].second << " ";
    }
    cout << "\n";*/
    for(int i = 0; i <= n; i++){
        if(A <= pref[i] * i && B <= suf[i + 1] * (n - i)){
            cout << "Yes\n";
            cout << i << " " << n - i << "\n";
            for(int j = 1; j <= i; j++){
                cout << a[j].second << " ";
            }
            cout << "\n";
            for(int j = i + 1; j <= n; j++){
                cout << a[j].second << " ";
            }
            return 0;
        }
        if(B <= pref[i] * i && A <= suf[i + 1] * (n - i)){
            cout << "Yes\n";
            cout << n - i << " " << i << "\n";
            for(int j = i + 1; j <= n; j++){
                cout << a[j].second << " ";
            }
            cout << "\n";
            for(int j = 1; j <= i; j++){
                cout << a[j].second << " ";
            }
            return 0;
        }
    }
    cout << "No";
}
