#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 100009;
int t, n;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int x1 = -1;
  for (int i = 1; i <= 10000; i++) {
    if (i >= a && i >= d && a * 2 >= i && d * 2 < i) {
      x1 = i;
      break;
    }
  }
  int x2 = -1;
  for (int i = 1; i <= 10000; i++) {
    if (i >= b && i >= d && b * 2 >= i && d * 2 < i) {
      x2 = i;
      break;
    }
  }
  int x3 = -1;
  for (int i = 1; i <= 10000; i++) {
    if (i >= c && i >= d && c * 2 >= i && d * 2 >= i) {
      x3 = i;
      break;
    }
  }
  if (x1 == -1 || x2 == -1 || x3 == -1)
    puts("-1");
  else {
    while (x3 >= x2) x2++;
    while (x1 <= x2) x1++;
    if (!(x1 >= a && a * 2 >= x1 && x1 >= d && d * 2 < x1)) x1 = -1;
    if (!(x2 >= b && b * 2 >= x2 && x2 >= d && d * 2 < x2)) x2 = -1;
    if (x1 == -1 || x2 == -1 || x3 == -1)
      puts("-1");
    else
      printf("%d\n%d\n%d\n", x1, x2, x3);
  }
  return 0;
}
