#include <bits/stdc++.h>
using namespace std;
int a[6], n, pos;
vector<int> ans;
int main() {
  ios::sync_with_stdio(0);
  for (int i = 1; i <= 4; i++) cin >> a[i], n += a[i];
  for (int i = 1; i <= 4; i++)
    if (a[i]) {
      bool b = 1;
      int c[6];
      ans.clear();
      pos = i;
      memcpy(c, a, sizeof(a));
      for (int j = 1; j <= n; j++) {
        ans.push_back(pos);
        c[pos]--;
        if (c[pos - 1])
          pos--;
        else if (c[pos + 1])
          pos++;
        else if (j != n) {
          b = 0;
          break;
        }
      }
      if (b) {
        cout << "YES\n";
        for (int i = 0; i < ans.size(); i++) cout << ans[i] - 1 << ' ';
        return 0;
      }
    }
  cout << "NO";
  return 0;
}
