#include <bits/stdc++.h>
using namespace std;
int a[5], b[5];
int main() {
  for (long long i = 0; i < 4; i++) {
    cin >> a[i];
  }
  for (long long i = 0; i < 4; i++) {
    for (long long j = 0; j < 4; j++) b[j] = a[j];
    int x = i;
    vector<long long> ans;
    while (1) {
      ans.push_back(x);
      b[x]--;
      if (x != 0 && b[x - 1]) {
        x--;
      } else if (x != 3 && b[x + 1]) {
        x++;
      } else
        break;
    }
    if (!b[0] && !b[1] && !b[2] && !b[3]) {
      puts("YES");
      for (auto item : ans) cout << item << " ";
      return 0;
    }
  }
  puts("NO");
}
