← Home
package main

import (
	"bufio"
	"fmt"
	"os"
	"sort"
)

type Point struct {
	x, y int
}

func main() {
	in := bufio.NewReader(os.Stdin)
	p := make([]Point, 3)
	for i := 0; i < 3; i++ {
		fmt.Fscan(in, &p[i].x, &p[i].y)
	}

	ans := []Point{
		{p[0].x + p[1].x - p[2].x, p[0].y + p[1].y - p[2].y},
		{p[0].x + p[2].x - p[1].x, p[0].y + p[2].y - p[1].y},
		{p[1].x + p[2].x - p[0].x, p[1].y + p[2].y - p[0].y},
	}

	sort.Slice(ans, func(i, j int) bool {
		if ans[i].x != ans[j].x {
			return ans[i].x < ans[j].x
		}
		return ans[i].y < ans[j].y
	})

	out := bufio.NewWriter(os.Stdout)
	defer out.Flush()

	fmt.Fprintln(out, 3)
	for _, pt := range ans {
		fmt.Fprintln(out, pt.x, pt.y)
	}
}