#include <bits/stdc++.h>
using namespace std;
long long i = 0, j = 0, k = 0;
void solve() {
  int v1, v2, v3, vm;
  cin >> v1 >> v2 >> v3 >> vm;
  for (i = v1; i <= 2 * v1; ++i) {
    for (j = v2; j < 2 * v2 + 1; ++j) {
      for (k = v3; k <= 2 * v3; ++k) {
        if (vm < i && vm < j && vm <= k && 2 * vm >= k && i > 2 * vm &&
            j > 2 * vm && i > j && j > k) {
          cout << i << endl << j << endl << k << endl;
          return;
        }
      }
    }
  }
  cout << -1;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t = 1;
  while (t--) solve();
}
