N = int(input()) A = list(map(int, input().split())) x, y = list(map(int, input().split())) C = list(map(int, input().split())) print(4) print(x+1, y) print(x-1, y) print(x, y-1) print(x, y+1)