while True:

    n = int(eval(input()))

    if n == 0:

        break



    patients = []

    for _ in range(n):

        p, d1, d2 = list(map(int, input().split()))

        patients.append((p, d1+d2))

    print((*max(patients, key=lambda x: x[1])))
while True:

    n = int(eval(input()))

    if n == 0:

        break



    patients = [list(map(int, input().split())) for _ in range(n)]

    patients = [(p, d1+d2) for p, d1, d2 in patients]

    print((*max(patients, key=lambda x: x[1])))
while True:
    n = int(eval(input()))
    if n == 0:
        break
    patients = []
    for _ in range(n):
        p, d1, d2 = list(map(int, input().split()))
        patients.append((p, d1 + d2))
    print((*max(patients, key=lambda x: x[1])))

while True:
    n = int(eval(input()))
    if n == 0:
        break
    patients = [list(map(int, input().split())) for _ in range(n)]
    patients = [(p, d1 + d2) for p, d1, d2 in patients]
    print((*max(patients, key=lambda x: x[1])))

-    patients = [] -    for _ in range(n): -        p, d1, d2 = list(map(int, input().split())) -        patients.append((p, d1 + d2)) +    patients = [list(map(int, input().split())) for _ in range(n)] +    patients = [(p, d1 + d2) for p, d1, d2 in patients]