#include <bits/stdc++.h>
using namespace std;
long long sum(long long a) { return a * (a + 1) / 2; }
int main() {
  int a, b, c, m;
  cin >> a >> b >> c >> m;
  for (int i = 1; i <= 200; i++) {
    for (int j = 1; j <= 200; j++) {
      for (int k = 1; k <= 200; k++) {
        if (i >= a && i <= 2 * a && j >= b && j <= 2 * b && k >= c &&
            k <= 2 * c && k >= m && k <= 2 * m && i > j && j > k && i > 2 * m &&
            j > 2 * m) {
          cout << i << endl << j << endl << k << endl;
          return 0;
        }
      }
    }
  }
  cout << -1 << endl;
}
