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

const int INF = 1e9 + 7;

void solve() {
    int t;
    cin >> t;
    int n, m;
    cin >> n >> m;
    int h, g;
    cin >> h >> g;
    string s;
    cin >> s;
    if (h % 2 != g % 2) {
        cout << "No";
        return;
    }
    cout << "Yes" << endl;
    int y = (1 + m) / 2;
    if (t >= 2) {
        cout << y << endl;
    }
    if (t == 3) {
        cout << 1 << endl;
        cout << (m - y) << " " << y << endl;
    }
}

int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    solve();
}
