#include <bits/stdc++.h>
using namespace std;
template <typename T>
using V = vector<T>;
bool ok(int a, int b) { return a <= b && 2 * a >= b; }
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int v1, v2, v3, vm;
  cin >> v1 >> v2 >> v3 >> vm;
  for (int c1 = 1; c1 <= 400; ++c1) {
    for (int c2 = c1 + 1; c2 <= 400; ++c2) {
      for (int c3 = c2 + 1; c3 <= 400; ++c3) {
        if (ok(v1, c3) && ok(v2, c2) && ok(v3, c1)) {
          if (vm <= c1 && vm <= c2 && vm <= c3 && ok(vm, c1) && !ok(vm, c2) &&
              !ok(vm, c3)) {
            cout << c3 << endl << c2 << endl << c1 << endl;
            return 0;
          }
        }
      }
    }
  }
  cout << -1 << endl;
}
