input() input() input() cx, cy = map(int, input().split()) ret = [ (cx + 1, cy), (cx - 1, cy), (cx, cy + 1), (cx, cy - 1) ] print(len(ret)) for x, y in ret: print(x, y)