#include <bits/stdc++.h> using namespace std; int main() { double x0, y0, z0, x1, y1, z1, r, v; while (cin >> x0 >> y0 >> z0 >> x1 >> y1 >> z1) { // 注意 while 处理多个 case r = sqrt(pow(x1 - x0, 2) + pow(y1 - y0, 2) + pow(z1 - z0, 2)); v = 4.0 / 3 * M_PI * pow(r, 3); printf("%.3lf %.3lf\n", r, v); } return 0; } // 64 位输出请用 printf("%lld")