n = int(input()) if n>=1 and n<1000000000000000000: while(n!=0): x, y, z = map(int, input().split()) if x>y and x > z: print(x) elif y>x and y>z: print(y) elif z>x and z>y: print(z) else: print("All n are equal.") n = n - 1 else: print("Error")