#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0)->sync_with_stdio(0);
  vector<int> c(6);
  cin >> c[1] >> c[2] >> c[3] >> c[4];
  int n = c[1] + c[2] + c[3] + c[4];
  for (int st = 1; st <= 4; ++st) {
    vector<int> d = c, e(n);
    int x = st;
    bool ok = 1;
    for (int& i : e)
      if (d[x - 1])
        d[i = --x]--;
      else if (d[x + 1])
        d[i = ++x]--;
      else {
        ok = 0;
        break;
      }
    if (ok) {
      cout << "YES" << '\n';
      for (int& i : e) cout << i - 1 << ' ';
      cout << '\n';
      return 0;
    }
  }
  cout << "NO" << '\n';
}
