#include <bits/stdc++.h>
int main() {
  int b1, b2, b3, m;
  scanf("%d %d %d %d", &b1, &b2, &b3, &m);
  int cars[4];
  bool flag = true;
  cars[0] = 2 * b1;
  cars[1] = 2 * b2;
  cars[2] = 2 * m < 2 * b3 ? 2 * m : 2 * b3;
  int temp = m + b3 - cars[2] / 2;
  if (m > cars[0] || m > cars[1] || cars[2] < temp) flag = false;
  if (2 * m >= cars[0] || 2 * m >= cars[1]) flag = false;
  if (flag)
    printf("%d\n%d\n%d\n", cars[0], cars[1], cars[2]);
  else
    printf("-1");
  return 0;
}
