#include
#include
using namespace std;
double Otr(double Ax, double Bx, double Ay, double By) {
return sqrt((Bx - Ax)*(Bx - Ax) + (By - Ay)*(By - Ay));
}
int main() {
double Ax, Ay, Bx, By, Cx, Cy, Dx, Dy;
cin >> Ax >> Ay >> Bx >> By >> Cx >> Cy >> Dx >> Dy;
cout << "|AB|=" << Otr(Ax, Bx, Ay, By) << endl;</p>
cout << "|AC|=" << Otr(Ax, Cx, Ay, Cy) << endl;</p>
cout << "|AD|=" << Otr(Ax, Dx, Ay, Dy) << endl;</p>
return 0;
}