#include
#include
int main()
{
int x1,y1,x2,y2,x3,y3;
scanf("%d%d%d%d%d%d",&x1,&y1,&x2,&y2,&x3,&y3);
double a,b,c,p,L,A,l,m,n;
a=sqrt ((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
b=sqrt ((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2));
c=sqrt ((x3-x1)*(x3-x1)+(y3-y1)*(y3-y1));
if(a+b>c&&a+c>b&&b+c>a){
L=a+b+c;
p=0.5*L;
l=p-a;
m=p-b;
n=p-c;
A=sqrt(p*l*m*n);
printf("L = %.2f, A = %.2f\n",L,A);
}
else {
printf("Impossible\n");
}
return 0;
}