import math
n = int(input())
point = []
for e in range(n):
    point.append([float(i) for i in input().split()])
    point[e].append(e + 1)
    dist = math.sqrt((point[e][0] ** 2) + (point[e][1] ** 2))
    point[e].append(dist)
point = sorted(point, key=lambda e: e[3])
print('#' + str(point[2][2]) + ': (' + str(point[2][0]) + ', ' + str(point[2][1]) + ')')
d63e5443f2ff3de15776b7d437f690607881962a
<mask token>

<mask token>
for e in range(n):
    point.append([float(i) for i in input().split()])
    point[e].append(e + 1)
    dist = math.sqrt(point[e][0] ** 2 + point[e][1] ** 2)
    point[e].append(dist)
<mask token>
print('#' + str(point[2][2]) + ': (' + str(point[2][0]) + ', ' + str(point[
    2][1]) + ')')

<mask token>
n = int(input())
point = []
for e in range(n):
    point.append([float(i) for i in input().split()])
    point[e].append(e + 1)
    dist = math.sqrt(point[e][0] ** 2 + point[e][1] ** 2)
    point[e].append(dist)
point = sorted(point, key=lambda e: e[3])
print('#' + str(point[2][2]) + ': (' + str(point[2][0]) + ', ' + str(point[
    2][1]) + ')')

import math
n = int(input())
point = []
for e in range(n):
    point.append([float(i) for i in input().split()])
    point[e].append(e + 1)
    dist = math.sqrt(point[e][0] ** 2 + point[e][1] ** 2)
    point[e].append(dist)
point = sorted(point, key=lambda e: e[3])
print('#' + str(point[2][2]) + ': (' + str(point[2][0]) + ', ' + str(point[
    2][1]) + ')')

import math
n = int(input())
point = []
for e in range(n):
    point.append([float(i) for i in input().split()])
    point[e].append(e + 1)
    dist = math.sqrt((point[e][0] ** 2) + (point[e][1] ** 2))
    point[e].append(dist)
point = sorted(point, key=lambda e: e[3])
print('#' + str(point[2][2]) + ': (' + str(point[2][0]) + ', ' + str(point[2][1]) + ')')