#include<bits/stdc++.h>
#define int long long
#define pb push_back
#define f first
#define s second
#define ll long long
#define ld long double
#define pii pair<int, int>

using namespace std;

void solve() {
    int t; cin >> t;
    int n, m; cin >> n >> m;
    vector<int> a(n); for (int i = 0; i < n; i++) cin >> a[i];
    for (int i = 0; i < n; i++) {
        if (a[i] % 2 != a[0] % 2) {
            cout << "No";
            return;
        }
    }
    cout << "Yes" << '\n';
    if (t == 1) {
        return;
    }
    cout << (m + 1) / 2 << '\n';
    cout << 1 << '\n' << (m + 1) / 2 << " " << (m + 1) / 2;
}

signed main() {
#ifdef LOCAL
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
    ios_base::sync_with_stdio(0); cin.tie(0);
    int t = 1; // cin >> t;
    while (t--) solve();
}