#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e2 + 5;
int v[5];
bool check(int a, int b) {
  if (a <= b) {
    return (2 * a >= b);
  }
  return false;
}
int main() {
  for (int i = 1; i <= 4; ++i) {
    cin >> v[i];
  }
  for (int i = 1; i <= maxn; ++i) {
    if (check(v[1], i)) {
      for (int j = 1; j < i; ++j) {
        if (check(v[2], j)) {
          for (int k = 1; k < j; ++k) {
            if (check(v[3], k) && v[4] <= min(i, min(j, k))) {
              if (check(v[4], k) && !check(v[4], i) && !check(v[4], j)) {
                cout << i << "\n" << j << "\n" << k;
                return 0;
              }
            }
          }
        }
      }
    }
  }
  cout << -1;
  return 0;
}
