#include <iostream>
#include <stack>
using namespace std;
int main() {
struct student{
string fam, name;
int m,f,i;
};
int n;
cin>>n;
student a[n];
for(int i=0; i<n; i++){
cin>>a[i].fam>>a[i].name>>a[i].m>>a[i].f>>a[i].i;
}
int M=0, F=0, I=0;
for(int i=0; i<n; i++){
M+=a[i].m;
F+=a[i].f;
I+=a[i].i;
}
float sm=float(M)/n;
float sf=float(F)/n;
float si=float(I)/n;
cout<<sm<<" "<<sf<<" "<<si<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RhY2s+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXN0cnVjdCBzdHVkZW50ewoJCXN0cmluZyBmYW0sIG5hbWU7CgkJaW50IG0sZixpOwoJfTsKCWludCBuOwoJY2luPj5uOwoJc3R1ZGVudCBhW25dOwoJZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKCQljaW4+PmFbaV0uZmFtPj5hW2ldLm5hbWU+PmFbaV0ubT4+YVtpXS5mPj5hW2ldLmk7Cgl9CglpbnQgTT0wLCBGPTAsIEk9MDsKCWZvcihpbnQgaT0wOyBpPG47IGkrKyl7CgkJCU0rPWFbaV0ubTsKCQkJRis9YVtpXS5mOwoJCQlJKz1hW2ldLmk7CgkJCQoJfQoJZmxvYXQgc209ZmxvYXQoTSkvbjsKCWZsb2F0IHNmPWZsb2F0KEYpL247CglmbG9hdCBzaT1mbG9hdChJKS9uOwoJY291dDw8c208PCIgIjw8c2Y8PCIgIjw8c2k8PGVuZGw7CglyZXR1cm4gMDsKfQ==