import sys
import random

N = int(input())

xy = []

for i in range(2*N):

    x,y = map(int,input().split())
    xy.append( (x,y) )

while True:

    a = 1
    b = random.randint(90000,10**5)
    if random.randint(0,1) == 0:
        b *= -1
    if random.randint(0,1) == 0:
        a,b = b,a

    l = -2*(10**10)
    r =  2*(10**10)+1

    while r-l != 1:

        m = (l+r)//2

        plus = 0
        minus = 0
        for x,y in xy:
            s = a*x+b*y+m
            if s < 0:
                minus += 1
            elif s > 0:
                plus += 1

        if plus > minus:
            r = m
        else:
            l = m

    for m in range(l-3,r+4):
        plus = 0
        minus = 0
        for x,y in xy:
            s = a*x+b*y+m
            if s < 0:
                minus += 1
            elif s > 0:
                plus += 1

        if plus == minus == N:
            print (a,b,m)
            sys.exit()

    # print (a,b,m)
    # assert False