#include <bits/stdc++.h>
using namespace std;
int main() {
double x0,y0,z0,x1,y1,z1;
double r,v;
while(cin>>x0)
{
cin>>y0>>z0>>x1>>y1>>z1;
double s=(x1-x0)*(x1-x0)+(y1-y0)*(y1-y0)+(z1-z0)*(z1-z0);
r=pow(s,double(1.000/2));
v=acos(-1)*double(4.000/3)*pow(r,3);
cout<<fixed<<setprecision(3)<<r<<" "<<v<<endl;
}
}
// 64 位输出请用 printf("%lld")



京公网安备 11010502036488号