#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#define PI acos(-1)
using namespace std;
int main()
{
int x0, y0, z0, x1, y1, z1;
scanf("%d%d%d%d%d%d", &x0, &y0, &z0, &x1, &y1, &z1);
double r, s;
r = sqrt(pow(x0 - x1, 2) + pow(y0 - y1, 2) + pow(z0 - z1, 2));
s = 4.0 / 3 * PI * pow(r, 3);
printf("%.3lf %.3lf\n", r, s);
return 0;
}