#include <bits/stdc++.h>
using namespace std;
using ll = long long;
enum {};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int v[3], vm;
  cin >> v[0] >> v[1] >> v[2] >> vm;
  int c[4];
  c[3] = 0;
  for (c[0] = 1; c[0] <= 200; ++c[0]) {
    for (c[1] = 1; c[1] <= 200; ++c[1]) {
      for (c[2] = 1; c[2] <= 200; ++c[2]) {
        bool flag = true;
        for (int i = 0; i < 3; ++i) {
          flag &= c[i] >= max(vm, v[i]);
          flag &= 2 * v[i] >= c[i];
          flag &= c[i] > c[i + 1];
        }
        flag &= 2 * vm < c[0];
        flag &= 2 * vm < c[1];
        flag &= 2 * vm >= c[2];
        if (flag) {
          for (int i = 0; i < 3; ++i) {
            cout << c[i] << '\n';
          }
          return 0;
        }
      }
    }
  }
  cout << "-1\n";
  return 0;
}
