#include<bits/stdc++.h>

#define int long long

using namespace std;

signed main() {
    ios_base::sync_with_stdio();
    cin.tie(0);
    cout.tie(0);
    int t;
    cin >> t;
    int n, m;
    cin >> n >> m;
    vector<int> a(n);
    for (int i = 0; i < n; ++i) {
        cin >> a[i];
    }
    string s;
    cin >> s;
    if (t == 1) {
        sort(a.begin(), a.end());
        int fl = 1;
        for (int i = 0; i < n - 1; ++i) {
            if (a[i + 1] - a[i] == 1) {
                fl = 0;
            }
        }
        if (fl) {
            cout << "Yes" << endl;
        } else {
            cout << "No" << endl;
        }
        return 0;
    }
    if (n == 2) {
        if (m == 2) {
            assert(false);
            return 0;
        }
        cout << "Yes" << endl;
        if (t > 1) {
            cout << m / 2 + 1 << endl;
        }
        if (t > 2) {
            cout << m / 2 << " " << m / 2 + 1 << endl;
        }
    }
    return 0;
}
