#include using namespace std; using ll = long long; template istream& operator >> (istream& is, vector& vec) { for(T& x : vec) is >> x; return is; } template ostream& operator << (ostream& os, const vector& vec) { if(vec.empty()) return os; os << vec[0]; for(auto it = vec.begin(); ++it != vec.end(); ) os << ' ' << *it; return os; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, k, x, y; cin >> n >> k >> x >> y; if(y == 0){ cout << "No\n"; return 0; } vector ans(n); ans[0] = x; ans[n - 1] = y; if(k == 1){ for(int i = 1; i + 1 < n; i++){ ans[i] = ans[i - 1] + 1; } if(ans[n - 2] < ans[n - 1]){ cout << "Yes\n" << ans << '\n'; }else{ cout << "No\n"; } return 0; }else if(k == 2){ if(x != 0){ for(int i = 1; i + 1 < n; i++){ ans[i] = x; } cout << "Yes\n" << ans << '\n'; }else{ cout << "No\n"; } }else{ if(x != 0){ vector S(k); int tot = x; S[0] = x; for(int i = 1; i + 1 < k; i++){ S[i] = 0b1010101; tot ^= 0b1010101; } S.back() = tot; for(int i = 0; i < n; i++) ans[i] = S[i % k]; cout << "Yes\n" << ans << '\n'; }else{ cout << "No\n"; } } }