#include <bits/stdc++.h>
using namespace std;
int main() {
  int v1, v2, v3, vm;
  scanf("%d", &v1);
  scanf("%d", &v2);
  scanf("%d", &v3);
  scanf("%d", &vm);
  int i, j, k;
  for (i = 1; i <= 400; i++) {
    for (j = 1; j <= 400; j++) {
      for (k = 1; k <= 400; k++) {
        if (v1 <= i and 2 * v1 >= i and v2 <= j and 2 * v2 >= j and v3 <= k and
            2 * v3 >= k) {
          if (vm <= i and vm <= j and vm <= k) {
            if (2 * vm >= k and 2 * vm < j and 2 * vm < i and i > j and j > k) {
              cout << i << endl << j << endl << k << endl;
              return 0;
            }
          }
        }
      }
    }
  }
  cout << "-1" << endl;
  return 0;
}
