#include <bits/stdc++.h>
using namespace std;
template <class T>
bool uin(T &a, T b) {
  return a > b ? (a = b, true) : false;
}
template <class T>
bool uax(T &a, T b) {
  return a < b ? (a = b, true) : false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.precision(10);
  cout << fixed;
  vector<int> cnt(4);
  for (int i = 0; i < (int)(4); ++i) cin >> cnt[i];
  int S = accumulate((cnt).begin(), (cnt).end(), 0);
  for (int i = 0; i < (int)(4); ++i) {
    vector<int> ncnt = cnt;
    if (!ncnt[i]) continue;
    vector<int> ans = {i};
    --ncnt[i];
    while (1) {
      int now = ans.back(), nxt = -1;
      if (now < 3 && ncnt[now + 1] > 0)
        nxt = now + 1;
      else if (now > 0 && ncnt[now - 1] > 0)
        nxt = now - 1;
      if (nxt == -1) break;
      ans.push_back(nxt);
      --ncnt[nxt];
    }
    if (ans.size() == S) {
      cout << "YES" << '\n';
      for (auto it : ans) cout << it << " ";
      cout << '\n';
      return 0;
    }
  }
  cout << "NO" << '\n';
  return 0;
}
