import java.util.Scanner;
class Main {
public static void main
(String[] args
) { Scanner scanner
= new Scanner
(System.
in); int x1 = scanner.nextInt();
int y1 = scanner.nextInt();
int x2 = scanner.nextInt();
int y2 = scanner.nextInt();
int x3 = scanner.nextInt();
int y3 = scanner.nextInt();
if ((x2-x1)*(x3-x1)+(y2-y1)*(y3-y1)==0) {
System.
out.
println((x2
+x3
-x1
)+" "+(y2
+y3
-y1
)); }
else if ((x2-x1)*(x3-x2)+(y2-y1)*(y3-y2)==0) {
System.
out.
println((x1
+x3
-x2
)+" "+(y1
+y3
-y2
)); }
else if ((x3-x1)*(x3-x2)+(y3-y1)*(y3-y2)==0) {
System.
out.
println((x1
+x2
-x3
)+" "+(y1
+y2
-y3
)); }
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwogCmNsYXNzIE1haW4gewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHsKCQlTY2FubmVyIHNjYW5uZXIgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIGludCB4MSA9IHNjYW5uZXIubmV4dEludCgpOwogICAgICAgIGludCB5MSA9IHNjYW5uZXIubmV4dEludCgpOwogICAgICAgIGludCB4MiA9IHNjYW5uZXIubmV4dEludCgpOwogICAgICAgIGludCB5MiA9IHNjYW5uZXIubmV4dEludCgpOwogICAgICAgIGludCB4MyA9IHNjYW5uZXIubmV4dEludCgpOwogICAgICAgIGludCB5MyA9IHNjYW5uZXIubmV4dEludCgpOwoJCWlmICgoeDIteDEpKih4My14MSkrKHkyLXkxKSooeTMteTEpPT0wKSB7CgkgICAgCVN5c3RlbS5vdXQucHJpbnRsbigoeDIreDMteDEpKyIgIisoeTIreTMteTEpKTsKCQl9CiAgICAJZWxzZSBpZiAoKHgyLXgxKSooeDMteDIpKyh5Mi15MSkqKHkzLXkyKT09MCkgewogICAgICAgIAlTeXN0ZW0ub3V0LnByaW50bG4oKHgxK3gzLXgyKSsiICIrKHkxK3kzLXkyKSk7CiAgICAJfQogICAgCWVsc2UgaWYgKCh4My14MSkqKHgzLXgyKSsoeTMteTEpKih5My15Mik9PTApIHsKICAgICAgICAJU3lzdGVtLm91dC5wcmludGxuKCh4MSt4Mi14MykrIiAiKyh5MSt5Mi15MykpOwogICAgCX0gICAKCX0KfQ==