#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  ;
  int fb, mb, sb, m;
  cin >> fb >> mb >> sb >> m;
  bool possible = false;
  for (int i = 1; i < 201; i++) {
    for (int j = i + 1; j < 201; j++) {
      for (int k = j + 1; k < 201; k++) {
        if ((i >= m && i <= 2 * m) && !(j >= m && j <= 2 * m) &&
            !(k >= m && k <= 2 * m)) {
          if ((i >= sb && i <= 2 * sb) && (j >= mb && j <= 2 * mb) &&
              (k >= fb && k <= 2 * fb)) {
            cout << k << "\n" << j << "\n" << i << "\n";
            possible = true;
            goto looped;
          }
        }
      }
    }
  }
looped:
  if (!possible) {
    cout << -1 << '\n';
  }
  return 0;
}
