
#include <iostream>
#define int long long
using namespace std;
int a,b,c,d;
signed main(){
ios::sync_with_stdio(0);
cin.tie(NULL);
cin >> a >> b >> c >> d;
if(b*2 == c && a*2+b*4 == d){
cout << -1 << endl;
cout << -1 << endl;
return 0;
}
int x = d-(a*2+b*4);
int y = c-b*2;
if(y < 0 || x <= -2){
cout << -1 << endl;
}else{
cout << y << " " << x+2 << endl;
}
if(y <= -2 || x <= -4){
cout << -1 << endl;
}else{
cout << y+2 << " " << x+4 << endl;
}
return 0;
}
先润去写作业力