#include <bits/stdc++.h>
using namespace std;
ifstream in("input.txt");
ofstream out("output.txt");
const int MAXN = 1e5 + 7;
const long long MAXL = 1e18;
const int N = 1e7;
const double eps = 1e-11;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  for (int mini = 1; mini <= 200; ++mini) {
    for (int sr = mini + 1; sr <= 200; ++sr) {
      for (int maxi = sr + 1; maxi <= 200; ++maxi) {
        if (a <= maxi && a * 2 >= maxi && b <= sr && b * 2 >= sr && c <= mini &&
            c * 2 >= mini && d <= maxi && d * 2 < maxi && d <= sr &&
            d * 2 < sr && d <= mini && d * 2 >= mini) {
          cout << maxi << "\n" << sr << "\n" << mini << "\n";
          return 0;
        }
      }
    }
  }
  cout << -1 << "\n";
  return 0;
}
