#include <bits/stdc++.h>
using namespace std;
double a[100],b[100],c[100],tb[100];
int n,i;
int main()
{
cin>>n;
for (i=1; i<=n; i++) cin>>a[i]>>b[i]>>c[i];
for (i=1; i<=n; i++)
tb[i]=(a[i]+b[i]+c[i])/3;
for (i=1; i<=n; i++)
cout<<"Diem cua ban thu "<<i<<" la: "<<fixed<<setprecision(2)<<tb[i]<<endl;
return 0;
}