#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
int n, a[4], ans[maxn], temp[4];
bool check(int pt) {
  if (!a[pt]) return false;
  for (int i = 0; i < 4; ++i) temp[i] = a[i];
  for (int i = 1; i <= n; ++i) {
    ans[i] = pt;
    temp[pt]--;
    if (i == n) return true;
    if (pt && temp[pt - 1])
      pt--;
    else if (temp[pt + 1])
      pt++;
    else
      return false;
  }
  return true;
}
int main() {
  for (int i = 0; i < 4; ++i) {
    cin >> a[i];
    n += a[i];
  }
  for (int i = 0; i < 4; ++i)
    if (check(i)) {
      cout << "YES" << endl;
      for (int j = 1; j <= n; ++j) cout << ans[j] << " ";
      return 0;
    }
  cout << "NO" << endl;
  return 0;
}
