import java.util.*;
import java.lang.*;
import java.io.*;

class Pendulum {
	public static void main (String[] args) throws java.lang.Exception {
		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);
	}
}