#include <bits/stdc++.h>
using namespace std;
long long a[6], b[6];
signed main() {
  ios::sync_with_stdio(false);
  for (long long i = 1; i <= 4; i++) cin >> a[i];
  for (long long k = 1; k <= 4; k++) {
    for (long long i = 1; i <= 4; i++) b[i] = a[i];
    long long ind = k;
    vector<long long> v;
    v.push_back(ind);
    if (b[ind] == 0) continue;
    b[ind]--;
    while (1) {
      if (b[ind + 1]) {
        ind++;
        b[ind]--;
        v.push_back(ind);
      } else if (b[ind - 1]) {
        --ind;
        b[ind]--;
        v.push_back(ind);
      } else
        break;
    }
    if (v.size() == a[1] + a[2] + a[3] + a[4]) {
      cout << "YES" << endl;
      for (long long i = 0; i < v.size(); i++) cout << v[i] - 1 << " ";
      return 0;
    }
  }
  cout << "NO";
}
