#include <iostream>
#include "cmath"
using namespace std;
struct point{
    double x;
    double y;
    double z;
    point(double a,double b,double c){
        x=a;
        y=b;
        z=c;
    }
};
int main() {
    point a(0,0,0), b(0,0,0);
    while (cin >> a.x>>a.y>>a.z >> b.x>>b.y>>b.z) { // 注意 while 处理多个 case
        double R=sqrt(pow(b.x-a.x,2)+pow(b.y-a.y,2)+pow(b.z-a.z,2));
        double V=acos(-1)*pow(R,3)*4/3.0;
        printf("%.3f %.3f\n",R,V);
    }
}
// 64 位输出请用 printf("%lld")