#include <bits/stdc++.h>

using namespace std;
using ll = long long;
const int inf = 1e9 + 7;
const ll infll = 1e18;

template<typename T>
istream &operator>>(istream &is, vector<T> &a) {
    for (auto &i: a) {
        is >> i;
    }
    return is;
}

int32_t main() {
#ifdef LOCAL
    freopen("C:\\work\\input.txt", "r", stdin);
#else
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
#endif
    int t;
    cin >> t;
    int n, m;
    cin >> n >> m;
    vector<int> a(n);
    cin >> a;
    for (auto &i : a) {
        --i;
    }
    bool ok = true;
    for (int i = 0; i < n; ++i) {
        if (a[i] % 2 != a[0] % 2) {
            ok = false;
            break;
        }
    }
    if (!ok) {
        cout << "No\n";
        return 0;
    }
    cout << "Yes\n";
    cout << 3 << "\n";
    return 0;
}
