#include <bits/stdc++.h>
int main() {
  int a, b, c, m;
  scanf("%d %d %d %d", &a, &b, &c, &m);
  if (2 * c < m || c > m * 2) {
    c = -1;
  } else if (c < m && 2 * c >= m)
    c = m;
  else if (c >= m && c <= m * 2)
    c = c;
  if (2 * b <= 2 * m) {
    b = -1;
  } else
    b = 2 * b;
  if (2 * a <= 2 * m) {
    a = -1;
  } else
    a = 2 * a;
  if (a == -1 || b == -1 || c == -1)
    printf("-1\n");
  else
    printf("%d\n%d\n%d\n", a, b, c);
}
