#include <stdio.h>
#include <math.h>
int main() {
    int x1,x2,x3;
    int y1,y2,y3;

    while (scanf("%d %d %d %d %d %d",&x1,&x2,&x3,&y1,&y2,&y3) != EOF) { 
        double radius;
        double volume;
        radius =sqrt((y1-x1)*(y1-x1)+(y2-x2)*(y2-x2)+(y3-x3)*(y3-x3));
        volume=4.0/3.0*acos(-1)*radius*radius*radius;
        printf("%.3f %.3f",radius,volume);
    }
    return 0;
}