n = int(input()) if n<1 or n>1000000000000000000: print("Error") else: 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