import java.util.*;
import java.lang.*;
import java.io.*;
class Pendulum {
Scanner scanner
= new Scanner
(System.
in); double x0 = scanner.nextDouble();
double y0 = scanner.nextDouble();
double z0 = scanner.nextDouble();
double x1 = scanner.nextDouble();
double y1 = scanner.nextDouble();
double z1 = scanner.nextDouble();
double res;
//System.out.print(x0+" "+y0+" "+z0+" "+x1+" "+y1+" "+z1);
res
= Math.
sqrt((x1
-x0
)*(x1
-x0
)+(y1
-y0
)*(y1
-y0
)+(z1
-z0
)*(z1
-z0
)); System.
out.
print("coordinats of the low point"+"\n"+ x0
+" "+y0
+" "+(z0
-res
)+"\n"); System.
out.
print("coordinats of the another high point"+"\n"+(x0
-(x1
-x0
))+" "+(y0
-(y1
-y0
))+" "+z1
); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBQZW5kdWx1bSB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24gewoJCVNjYW5uZXIgc2Nhbm5lciA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJZG91YmxlIHgwID0gc2Nhbm5lci5uZXh0RG91YmxlKCk7CgkJZG91YmxlIHkwID0gc2Nhbm5lci5uZXh0RG91YmxlKCk7CgkJZG91YmxlIHowID0gc2Nhbm5lci5uZXh0RG91YmxlKCk7CgkJZG91YmxlIHgxID0gc2Nhbm5lci5uZXh0RG91YmxlKCk7CgkJZG91YmxlIHkxID0gc2Nhbm5lci5uZXh0RG91YmxlKCk7CgkJZG91YmxlIHoxID0gc2Nhbm5lci5uZXh0RG91YmxlKCk7CgkJZG91YmxlIHJlczsKCQkvL1N5c3RlbS5vdXQucHJpbnQoeDArIiAiK3kwKyIgIit6MCsiICIreDErIiAiK3kxKyIgIit6MSk7CgkJcmVzID0gTWF0aC5zcXJ0KCh4MS14MCkqKHgxLXgwKSsoeTEteTApKih5MS15MCkrKHoxLXowKSooejEtejApKTsKCQlTeXN0ZW0ub3V0LnByaW50KCJjb29yZGluYXRzIG9mIHRoZSBsb3cgcG9pbnQiKyJcbiIrIHgwKyIgIit5MCsiICIrKHowLXJlcykrIlxuIik7CgkJU3lzdGVtLm91dC5wcmludCgiY29vcmRpbmF0cyBvZiB0aGUgYW5vdGhlciBoaWdoIHBvaW50IisiXG4iKyh4MC0oeDEteDApKSsiICIrKHkwLSh5MS15MCkpKyIgIit6MSk7Cgl9Cn0=