Problem: Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer points on the Cartesian plane, that defined the set of vertices of some non-degenerate (positive area) parallelogram. Points not necessary were given in the order of clockwise or counterclockwise traversal.

Alex had very nice test for this problem, but is somehow happened that the last line of the input was lost and now he has only three out of four points of the original parallelogram. He remembers that test was so good that he asks you to restore it given only these three points.

Input

The input consists of three lines, each containing a pair of integer coordinates xi and yi ( - 1000 ≤ xi, yi ≤ 1000). It's guaranteed that these three points do not lie on the same line and no two of them coincide.

Output

First print integer k — the number of ways to add one new integer point such that the obtained set defines some parallelogram of positive area. There is no requirement for the points to be arranged in any special order (like traversal), they just define the set of vertices.

Then print k lines, each containing a pair of integer — possible coordinates of the fourth point.

Example

Input

0 0
1 0
0 1


Output

3
1 -1
-1 1
1 1

Note

If you need clarification of what parallelogram is, please check Wikipedia page:

https://en.wikipedia.org/wiki/Parallelogram

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;

public class R388B {
	
	static int[] pnt;
	
	public static void main(String[] args) throws Exception {
		BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter out = new PrintWriter(System.out);
		Scanner s = new Scanner(System.in);

		int x1 = s.nextInt(), y1 = s.nextInt(), x2=  s.nextInt(), y2 = s.nextInt(), x3 = s.nextInt(), y3 = s.nextInt();
		int[] pnts = {x1, y1, x2, y2, x3, y3};
		TreeSet<String> list = new TreeSet<>(); 
		pnt = pnts.clone();
		
		//pair p1 and p2
		int diffX = Math.abs(x1-x2), diffY = Math.abs(y1-y2);
		int[] use = {x3+diffX, y3+diffY, x3+diffX, y3-diffY, x3-diffX, y3+diffY, x3-diffX, y3-diffY};
		for(int i = 0; i < use.length; i+=2) {
			if(isParallelogram(use[i], use[i+1])) {
				list.add(use[i] + " " + use[i+1]);
			}
		}
		
		//pair p2 and p3
		diffX = Math.abs(x2-x3); diffY = Math.abs(y2-y3);
		int[] use2 = {x1+diffX, y1+diffY, x1+diffX, y1-diffY, x1-diffX, y1+diffY, x1-diffX, y1-diffY};
		for(int i = 0; i < use.length; i+=2) {
			if(isParallelogram(use2[i], use2[i+1])) {
				list.add(use2[i] + " " + use2[i+1]);
			}
		}
		
		//pair p1 and p3
		diffX = Math.abs(x1-x3); diffY = Math.abs(y1-y3);
		int[] use3 = {x2+diffX, y2+diffY, x2+diffX, y2-diffY, x2-diffX, y2+diffY, x2-diffX, y2-diffY};
		for(int i = 0; i < use.length; i+=2) {
			if(isParallelogram(use3[i], use3[i+1])) {
				list.add(use3[i] + " " + use3[i+1]);
			}
		}
		
		out.println(list.size());
		for(String str : list) out.println(str);
		out.close();
	}
	
	static boolean isParallelogram(int x, int y) {
		if((x == pnt[0] && y == pnt[1]) || (x == pnt[2] && y == pnt[3]) || (x == pnt[4] && y == pnt[5])) return false;
		for(int i = 0; i < pnt.length; i +=2) {
			int pairX = pnt[i], pairY = pnt[i+1];
			int px, py, qx, qy;
			if(i == 0) {
				px = pnt[2]; py = pnt[3]; qx = pnt[4]; qy = pnt[5];
			} else if(i == 2) {
				px = pnt[0]; py = pnt[1]; qx = pnt[4]; qy = pnt[5];
			} else {
				px = pnt[0]; py = pnt[1]; qx = pnt[2]; qy = pnt[3];
			}
			double dist = dist(x, y, pairX, pairY);
			double slope1 = slope(x, y, pairX, pairY), slope2 = slope(px, py, qx, qy);
			if(slope1 != slope2) continue;
			if(dist(px, py, qx, qy) != dist) continue;
			double dist1 = dist(x, y, px, py), dist2 = dist(pairX, pairY, qx, qy);
			double dist3 = dist(x, y, qx, qy), dist4 = dist(pairX, pairY, px, py);
			double s1 = slope(x, y, px, py), s2 = slope(pairX, pairY, qx, qy);
			double s3 = slope(x, y, qx, qy), s4 = slope(pairX, pairY, px, py);
			if((dist1 == dist2 && s1 == s2) || (dist3 == dist4 && s3 == s4)) return true;
		}
		return false;
	}
	
	static double dist(int x, int y, int x2, int y2) {
		double X = x-x2, Y = y-y2;
		return Math.sqrt(X*X + Y*Y);
	}
	
	static double slope(double x, double y, double x2, double y2) {
		if((x-x2) == 0) return 0;
		return (y-y2) / ((x-x2));
	}
}