#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int i, j, tot = 0;
  vector<int> a(4), b, ans;
  for (i = 0; i < 4; i++) {
    cin >> a[i];
    tot += a[i];
  }
  for (j = 0; j < 4; j++) {
    b = a;
    if (!b[j]) continue;
    ans.clear();
    ans.push_back(j);
    b[j]--;
    while (true) {
      if (ans.back() == 0) {
        if (b[1])
          ans.push_back(1), b[1]--;
        else
          break;
      } else if (ans.back() == 1) {
        if (b[0])
          ans.push_back(0), b[0]--;
        else if (b[2])
          ans.push_back(2), b[2]--;
        else
          break;
      } else if (ans.back() == 2) {
        if (b[1])
          ans.push_back(1), b[1]--;
        else if (b[3])
          ans.push_back(3), b[3]--;
        else
          break;
      } else if (ans.back() == 3) {
        if (b[2])
          ans.push_back(2), b[2]--;
        else
          break;
      }
    }
    if (ans.size() == tot) {
      cout << "YES" << endl;
      for (auto i : ans) cout << i << ' ';
      return 0;
    }
  }
  cout << "NO" << endl;
}
