student=[]
n=int(input(""))
for i in range(n):
name=input("")
score1=float(input(""))
score2=float(input(""))
score3=float(input(""))
student.append([name,score1,score1,score3])
for hs in student:
name=hs[0]
score1=hs[1]
score2=hs[2]
score3=hs[3]
avg_score=(score1+score2+score3)/3
print(f"Diem trung binh cua hoc sinh {name}: {avg_score}")
c3R1ZGVudD1bXQpuPWludChpbnB1dCgiIikpCmZvciBpIGluIHJhbmdlKG4pOgoJbmFtZT1pbnB1dCgiIikKCXNjb3JlMT1mbG9hdChpbnB1dCgiIikpCglzY29yZTI9ZmxvYXQoaW5wdXQoIiIpKQoJc2NvcmUzPWZsb2F0KGlucHV0KCIiKSkKCXN0dWRlbnQuYXBwZW5kKFtuYW1lLHNjb3JlMSxzY29yZTEsc2NvcmUzXSkKZm9yIGhzIGluIHN0dWRlbnQ6CgluYW1lPWhzWzBdCglzY29yZTE9aHNbMV0KCXNjb3JlMj1oc1syXQoJc2NvcmUzPWhzWzNdCglhdmdfc2NvcmU9KHNjb3JlMStzY29yZTIrc2NvcmUzKS8zCglwcmludChmIkRpZW0gdHJ1bmcgYmluaCBjdWEgaG9jIHNpbmgge25hbWV9OiB7YXZnX3Njb3JlfSIp