CHFSPL problem of July lunchtime 2021

Its running fine but while submitting it’s showing wrong answer. Why is it so?
Here’s my code:

t=int(input())
if t>0:
l=[]
for i in range(t):
a,b,c=input().split()
l=[a,b,c]

    Max= max(l)
    x=int(Max)
    
    l.remove(Max)
    
    Max2=max(l)
    y=int(Max2)
   
    s=x+y
    print(s)