#include <bits/stdc++.h>
using namespace std;
int num[7];
int sum;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int a[7] = {0};
  for (int i = 1; i <= 4; ++i) cin >> a[i];
  for (int i = 1; i <= 4; ++i) {
    num[i] = a[i];
    sum += num[i];
  }
  for (int i = 1; i <= 4; ++i) {
    for (int i = 1; i <= 4; ++i) num[i] = a[i];
    vector<int> v;
    int now = i;
    for (int i = 1; i <= sum; ++i) {
      if (!num[now]) break;
      --num[now];
      v.push_back(now - 1);
      if (num[now + 1])
        ++now;
      else
        --now;
    }
    if (v.size() == sum) {
      cout << "YES\n";
      for (auto it : v) cout << it << " ";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
