#include <bits/stdc++.h>
using namespace std;
int a[10], b[10], cnt;
int sum = 0, pos;
vector<int> p, ans;
int main() {
  for (int i = 1; i <= 4; i++) scanf("%d", &a[i]);
  for (int i = 1; i <= 4; i++) {
    p.clear();
    ans.clear();
    pos = i;
    memcpy(b, a, sizeof(a));
    while (1) {
      if (pos == 1) {
        if (b[2] == 0) break;
        pos = 2;
      } else {
        if (b[pos - 1] == 0) {
          if (b[pos + 1] == 0) {
            break;
          } else
            pos += 1;
        } else
          pos -= 1;
      }
      ans.push_back(pos);
      b[pos]--;
    }
    int flag = 1;
    for (int i = 1; i <= 4; i++) {
      if (b[i]) {
        flag = 0;
        break;
      }
    }
    if (flag) {
      cout << "YES\n";
      for (auto i : ans) cout << i - 1 << ' ';
      cout << '\n';
      return 0;
    }
  }
  cout << "NO\n";
}
