#include <bits/stdc++.h>
using namespace std;
int a, b, c, x;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> a >> b >> c >> x;
  for (int i = a; i <= 2 * a; i++)
    for (int j = b; j <= min(i - 1, 2 * b); j++)
      for (int k = c; k <= min(j - 1, 2 * c); k++)
        if (a <= i && b <= j && c <= k && 2 * a >= i && 2 * b >= j &&
            2 * c >= k && x <= i && x <= j && x <= k && 2 * x < i &&
            2 * x < j && 2 * x >= k)
          return cout << i << endl << j << endl << k << endl, 0;
  ;
  cout << -1 << endl;
  return 0;
}
