for _ in range(3) : a = input() x, y = map(int, input().split()) print(4) print(x-1, y) print(x+1, y) print(x, y+1) print(x, y-1)