#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[3], ans[3];
  for (int i = 0; i < 3; ++i) {
    ans[i] = -1;
  }
  for (c[0] = 1; c[0] <= 300; ++c[0]) {
    for (c[1] = 1; c[1] <= 300; ++c[1]) {
      for (c[2] = 1; c[2] <= 300; ++c[2]) {
        bool flag = true;
        for (int i = 0; i < 3; ++i) {
          flag &= v[i] <= c[i];
          flag &= vm <= c[i];
          flag &= 2 * v[i] >= c[i];
        }
        flag &= 2 * vm < c[0];
        flag &= 2 * vm < c[1];
        flag &= 2 * vm >= c[2];
        flag &= c[0] > c[1];
        flag &= c[1] > c[2];
        if (flag) {
          for (int i = 0; i < 3; ++i) {
            ans[i] = c[i];
          }
        }
      }
    }
  }
  for (int i = 0; i < 3; ++i) {
    cout << ans[i] << '\n';
    if (ans[i] == -1) {
      break;
    }
  }
  return 0;
}
