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