#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int f, m, c, ms;
  cin >> f >> m >> c >> ms;
  for (int F = f; F < (f << 1) + 1; F++) {
    for (int M = m; M < (m << 1) + 1; M++) {
      for (int L = min(c, ms); L < (max(c, ms) << 1) + 1; L++) {
        if (F > M && M > L) {
          if (c <= L && (c << 1) >= L && ms <= L && (ms << 1) >= L &&
              F > (ms << 1) && M > (ms << 1)) {
            cout << F << " " << M << " " << L << endl;
            return 0;
          }
        }
      }
    }
  }
  cout << -1 << endl;
  return 0;
}
