n = int(input()) x = list() y = list() teziste = [0] * 2 for i in range(n): unos = str(input()).split() x.append(int(unos[0])) y.append(int(unos[1])) teziste[0] += x[i] teziste[1] += y[i] teziste[0] /= n teziste[1] /= n for i in range(n): x[i] -= teziste[0] y[i] -= teziste[1] print(f"{x[i]:.2f} {y[i]:.2f}")