#include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int t;
    cin >> t;
    int n, m;
    cin >> n >> m;
    vector<int> a(n);
    for (auto& i : a) cin >> i;
    string s;
    cin >> s;
    assert(a[0] == 1);
    assert(a[1] == m);
    if (m % 2) {
        cout << "Yes\n";
        if (t >= 2) {
            cout << (m+1)/2 << '\n';
        }
        if (t >= 3) {
            assert(0);
            cout << m/2 << ' ' << (m+1)/2 << '\n';
        }
    } else {
        cout << "No\n";
    }
}