import math
p = input().lower().split()
dict = {}
s = set()
while len(p)==4:
    dict[(float(p[0]), float(p[1]), float(p[2]))] = p[3]
    s.add((float(p[0]), float(p[1]), float(p[2])))
    p = input().lower().split()
g = []
r = -1.0
for i in dict:
    s.remove(i)
    for j in s:
        m = math.sqrt((i[0] - j[0])**2 + (i[1] - j[1])**2 + (i[2] - j[2])**2)
        if m > r:
            r = m 
            g = [dict[i], dict[j]]
g.sort()
print(g[0] + ' ' + g[1] + '\n')

0c2c9e96a9b97e271879b8583fe8fed538d96fa5
<mask token>

<mask token>
while len(p) == 4:
    dict[float(p[0]), float(p[1]), float(p[2])] = p[3]
    s.add((float(p[0]), float(p[1]), float(p[2])))
    p = input().lower().split()
<mask token>
for i in dict:
    s.remove(i)
    for j in s:
        m = math.sqrt((i[0] - j[0]) ** 2 + (i[1] - j[1]) ** 2 + (i[2] - j[2
            ]) ** 2)
        if m > r:
            r = m
            g = [dict[i], dict[j]]
g.sort()
print(g[0] + ' ' + g[1] + '\n')

<mask token>
p = input().lower().split()
dict = {}
s = set()
while len(p) == 4:
    dict[float(p[0]), float(p[1]), float(p[2])] = p[3]
    s.add((float(p[0]), float(p[1]), float(p[2])))
    p = input().lower().split()
g = []
r = -1.0
for i in dict:
    s.remove(i)
    for j in s:
        m = math.sqrt((i[0] - j[0]) ** 2 + (i[1] - j[1]) ** 2 + (i[2] - j[2
            ]) ** 2)
        if m > r:
            r = m
            g = [dict[i], dict[j]]
g.sort()
print(g[0] + ' ' + g[1] + '\n')

import math
p = input().lower().split()
dict = {}
s = set()
while len(p) == 4:
    dict[float(p[0]), float(p[1]), float(p[2])] = p[3]
    s.add((float(p[0]), float(p[1]), float(p[2])))
    p = input().lower().split()
g = []
r = -1.0
for i in dict:
    s.remove(i)
    for j in s:
        m = math.sqrt((i[0] - j[0]) ** 2 + (i[1] - j[1]) ** 2 + (i[2] - j[2
            ]) ** 2)
        if m > r:
            r = m
            g = [dict[i], dict[j]]
g.sort()
print(g[0] + ' ' + g[1] + '\n')

import math
p = input().lower().split()
dict = {}
s = set()
while len(p)==4:
    dict[(float(p[0]), float(p[1]), float(p[2]))] = p[3]
    s.add((float(p[0]), float(p[1]), float(p[2])))
    p = input().lower().split()
g = []
r = -1.0
for i in dict:
    s.remove(i)
    for j in s:
        m = math.sqrt((i[0] - j[0])**2 + (i[1] - j[1])**2 + (i[2] - j[2])**2)
        if m > r:
            r = m 
            g = [dict[i], dict[j]]
g.sort()
print(g[0] + ' ' + g[1] + '\n')
