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.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author wannabe
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskB solver = new TaskB();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskB {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int x1 = in.nextInt();
            int y1 = in.nextInt();

            int x2 = in.nextInt();
            int y2 = in.nextInt();

            int x3 = in.nextInt();
            int y3 = in.nextInt();

            Set<TaskB.Pair> pairs = new HashSet<>();

            /**
             * 0 - левый верхний
             * 1 - правый верхний
             * 2 - правый нижний
             * 3 - левый нижний
             */
            for (int i1 = 0; i1 < 4; i1++) {
                for (int i2 = 0; i2 < 4; i2++) {
                    if (i2 == i1) continue;
                    for (int i3 = 0; i3 < 4; i3++) {
                        if (i3 == i2) continue;

                        double upperSize;

                        int abx;
                        int aby;

                        int x4, y4;
                        if (i1 == 0 && i2 == 1 || i1 == 3 && i2 == 2) {
                            upperSize = getLineLength(x1, y1, x2, y2);
                            abx = x2 - x1;
                            aby = y2 - y1;

                            if (i3 == 0 || i3 == 3) {
                                x4 = x3 - abx;
                                y4 = y3 - aby;
                            } else {
                                x4 = x3 + abx;
                                y4 = y3 + aby;
                            }
                        } else if (i1 == 0 && i3 == 1 || i1 == 3 && i3 == 2) {
                            abx = x3 - x1;
                            aby = y3 - y1;

                            if (i2 == 0 || i2 == 3) {
                                x4 = x2 - abx;
                                y4 = y2 - aby;
                            } else {
                                x4 = x2 + abx;
                                y4 = y2 + aby;
                            }
                        } else if (i1 == 1 && i2 == 0 || i1 == 2 && i2 == 3) {
                            abx = x1 - x2;
                            aby = y1 - y2;

                            if (i3 == 0 || i3 == 3) {
                                x4 = x3 - abx;
                                y4 = y3 - aby;
                            } else {
                                x4 = x3 + abx;
                                y4 = y3 + aby;
                            }
                        } else if (i1 == 1 && i3 == 0 || i1 == 2 && i3 == 3) {
                            abx = x1 - x3;
                            aby = y1 - y3;

                            if (i2 == 0 || i2 == 3) {
                                x4 = x2 - abx;
                                y4 = y2 - aby;
                            } else {
                                x4 = x2 + abx;
                                y4 = y2 + aby;
                            }
                        } else {
                            abx = x3 - x2;
                            aby = y3 - y2;

                            if (i1 == 0 || i1 == 3) {
                                x4 = x1 - abx;
                                y4 = y1 - aby;
                            } else {
                                x4 = x1 + abx;
                                y4 = y1 + aby;
                            }
                        }
                        pairs.add(new TaskB.Pair(x4, y4));

                    }
                }
            }

            out.println(pairs.size());
            for (TaskB.Pair pair : pairs) {
                out.println(pair.x + " " + pair.y);
            }
        }

        private double getLineLength(int x1, int y1, int x2, int y2) {
            return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
        }

        public static class Pair {
            public final int x;
            public final int y;

            public Pair(int x, int y) {
                this.x = x;
                this.y = y;
            }


            public boolean equals(Object o) {
                if (this == o) return true;
                if (o == null || getClass() != o.getClass()) return false;

                TaskB.Pair pair = (TaskB.Pair) o;

                if (x != pair.x) return false;
                return y == pair.y;
            }


            public int hashCode() {
                int result = x;
                result = 31 * result + y;
                return result;
            }

        }

    }
}