#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main()
{
    double x0, y0, z0, x1, y1, z1;
    cin >> x0 >> y0 >> z0 >> x1 >> y1 >> z1;
    double r = sqrt(pow(x1-x0, 2) + pow(y1-y0, 2) + pow(z1-z0, 2));//三维点到点距离公式
    double area = (4.0/3.0) * acos(-1) * pow(r, 3); //球体积公式
    printf("%.3f %.3f", r, area);
    return 0;
}