import os, sys if os.path.exists("input.txt"): sys.stdin = open('input.txt', 'r') N = int(input()) Ax, Ay = map(int, input().split()) Bx, By = map(int, input().split()) Cx, Cy = map(int, input().split()) def is_ok(i, j): return i > 0 and i <= N and j > 0 and j <= N walls = [] dirs = [0, 1, 0, -1, 0] for k in range(4): nx, ny = dirs[k] + Cx, dirs[k + 1] + Cy if is_ok(nx, ny): walls.append([nx, ny]) print(len(walls)) for wall in walls: print(*wall)