#include <bits/stdc++.h>
const double pi = acos(-1);
const int MOD = 1e9 + 7;
const int INF = 1e9 + 7;
const int MAXN = 1e5 + 5;
const double eps = 1e-9;
using namespace std;
int arr[MAXN];
int main() {
  for (int i = 0; i < 4; i++) scanf("%d", arr + i);
  for (int a = 0; a <= 300; a++) {
    if (arr[2] > a || arr[3] > a) continue;
    if (2 * arr[2] < a || 2 * arr[3] < a) continue;
    for (int b = a + 1; b <= 300; b++) {
      if (arr[1] > b) continue;
      if (2 * arr[1] < b || 2 * arr[3] >= b) continue;
      for (int c = b + 1; c <= 300; c++) {
        if (arr[0] > c) continue;
        if (2 * arr[0] < c || 2 * arr[3] >= c) continue;
        printf("%d\n%d\n%d\n", c, b, a);
        return 0;
      }
    }
  }
  printf("-1\n");
  return 0;
}
