#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main() {
double a=0,s=0,z;
int y;
vector<int> x;
while(cin>>z){
x.push_back(z);
}
for (int i=0;i<x.size();i++){
a+=x[i];
}
a=a/x.size();
for (int i=0;i<x.size();i++){
s=s+(a-x[i])*(a-x[i]);
}
s=s/(x.size()-1);
s=sqrt(s);
cout<<a<<" ";
cout<<s<<" ";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWRvdWJsZSBhPTAscz0wLHo7CglpbnQgeTsKCXZlY3RvcjxpbnQ+IHg7Cgl3aGlsZShjaW4+PnopewoJCXgucHVzaF9iYWNrKHopOwoJfQoJZm9yIChpbnQgaT0wO2k8eC5zaXplKCk7aSsrKXsKCQlhKz14W2ldOwoJfQoJYT1hL3guc2l6ZSgpOwoJZm9yIChpbnQgaT0wO2k8eC5zaXplKCk7aSsrKXsKCQlzPXMrKGEteFtpXSkqKGEteFtpXSk7Cgl9CglzPXMvKHguc2l6ZSgpLTEpOwoJcz1zcXJ0KHMpOwoJY291dDw8YTw8IiAiOwoJY291dDw8czw8IiAiOwoJcmV0dXJuIDA7Cn0=