#include <bits/stdc++.h>
using namespace std;
vector<int> v, e(4);
int ans;
bool solve(int cur) {
  v.clear();
  vector<int> c = e;
  while (c[cur] && cur < 4) {
    v.push_back(cur);
    c[cur]--;
    cur += (cur && c[cur - 1] ? -1 : 1);
  }
  for (int i = 0; i < 4; i++) {
    if (c[i] > 0) return false;
  }
  cout << "YES\n";
  for (int i = 0; i < v.size(); i++) {
    cout << v[i] << " ";
  }
  cout << endl;
  return true;
}
int main() {
  for (int i = 0; i < 4; i++) {
    cin >> e[i];
  }
  for (int i = 0; i < 4; i++) {
    if (solve(i)) {
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
