N = int(input()) ax, ay = map(int, input().split()) bx, by = map(int, input().split()) cx, cy = map(int, input().split()) print(8) for i in range(cx - 1, cx + 2): for j in range(cy - 1, cy + 2): if not (i == cx and j == cy): print(i, j)