#include <bits/stdc++.h>
using namespace std;
bool judge(int a, int b) { return a <= b && a * 2 >= b; }
int main(void) {
  int v1, v2, v3, v4;
  cin >> v1 >> v2 >> v3 >> v4;
  for (int i = 1; i <= 300; ++i) {
    for (int j = 1; j < i; ++j) {
      for (int k = 1; k < j; ++k) {
        if (judge(v1, i) && judge(v2, j) && judge(v3, k) &&
            (v4 <= k && (v4 * 2 >= k) && (v4 * 2 < j))) {
          cout << i << endl << j << endl << k;
          return 0;
        }
      }
    }
  }
  cout << -1;
}
