#include<stdio.h>
#include<math.h>
struct a{
int x;
int y;
};
double fan(struct a n ,struct a m ) {
double i;
i = (n.x - m.x) * (n.x - m.x) + (n.y - m.y) * (n.y - m.y);
return sqrt(i);
}
void get(struct a* p) {
scanf("%d", &p->x);
scanf("%d", &p->y);
return p;
}
int main()
{
double sum;
struct a x, y, z;
get(&x);
get(&y);
get(&z);
sum = fan(x, y) + fan(x, z) + fan(y, z);
printf("%.2f", sum);
return 0;
}