#include <bits/stdc++.h>
int main() {
  int a, b, c, d;
  scanf("%d%d%d%d", &a, &b, &c, &d);
  for (int i = a; i <= 2 * a; ++i)
    for (int j = b; j <= 2 * b && j < i; ++j)
      for (int k = c; k <= 2 * c && k < j; ++k)
        if (d <= i && d <= j && d <= k && d * 2 >= k && d * 2 < j &&
            d * 2 < i) {
          printf("%d\n%d\n%d", i, j, k);
          return 0;
        }
  puts("-1");
}
