#include <iostream>
using namespace std;
int main() {
int x, y, a, b, c, d;
cin >> x >> y >> a >> b >> c >> d;
if ( x >= c && x >= a && c >= a && d >= b && y <= d ) {
cout << " ( " << x << " " << y << " ) " <<
"( " << a << " " << b << " )" << " ( " << c << " " << d << " ) ";}
else if ( x >= c && x >=a && a >= c && b >= d && y <= b ){
cout << " ( " << x << " " << y << " ) " <<
"( " << c << " " << d << " )" << " ( " << a << " " << b << " ) ";}
else if ( c >= a && c >= x && x >= a && y >= b && d <= y ){
cout << " ( " << c << " " << d << " ) " <<
"( " << a << " " << b << " )" << " ( " << x << " " << y << " ) ";}
else if ( c >= x && c >= a && a >= x && b >= y && d <= b){
cout << " ( " << c << " " << d << " ) " <<
"( " << x << " " << y << " )" << " ( " << a << " " << b << " ) ";}
else if ( a >= c && a >= x && c >= x && d >= y && b <= d ){
cout << " ( " << a << " " << b << " ) " <<
"( " << x << " " << y << " )" << " ( " << c << " " << d << " ) ";}
else if ( a >= c && a >= x && x >= c && y >= d && b <= y){
cout << " ( " << a << " " << b << " ) " <<
"( " << c << " " << d << " )" << " ( " << x << " " << y << " ) ";}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgeCwgeSwgYSwgYiwgYywgZDsKCWNpbiA+PiB4ID4+IHkgPj4gYSA+PiBiID4+IGMgPj4gZDsKCWlmICggeCA+PSBjICYmIHggPj0gYSAmJiBjID49IGEgJiYgZCA+PSBiICYmIHkgPD0gZCApIHsKCQljb3V0IDw8ICIgKCAiIDw8IHggPDwgIiAiIDw8IHkgPDwgIiApICIgPDwKCQkiKCAiIDw8IGEgPDwgIiAiIDw8IGIgPDwgIiApIiA8PCAiICggIiA8PCBjIDw8ICIgIiA8PCBkIDw8ICIgKSAiO30KCWVsc2UgaWYgKCB4ID49IGMgJiYgeCA+PWEgJiYgYSA+PSBjICYmIGIgPj0gZCAmJiB5IDw9IGIgKXsKCQljb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