import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner input = new Scanner(System.in);
int[] c = new int[6];
for (int i = 0; i < 6; i++) {
c[i] = input.nextInt();
}
int d, e, f;
d = (c[0] - c[2]) * (c[0] - c[2]) + (c[1] - c[3]) * (c[1] - c[3]);
e = (c[0] - c[4]) * (c[0] - c[4]) + (c[1] - c[5]) * (c[1] - c[5]);
f = (c[4] - c[2]) * (c[4] - c[2]) + (c[5] - c[3]) * (c[5] - c[3]);
if (d > e && e == f){
System.out.print(c[0] + c[2] - c[4] + " ");
System.out.print(c[1] + c[3] - c[5]);}
if (e > d && d == f){
System.out.print(c[0] + c[4] - c[2] + " ");
System.out.print(c[1] + c[5] - c[3]);}
if (f > d && d == e){
System.out.print(c[4] + c[2] - c[0] + " ");
System.out.print(c[5] + c[3] - c[0]);}
}}