Begin
var fi_min:=ReadlnReal('fi_min=');
var fi_:=ReadlnReal('fi_=');
var fi_max:=ReadlnReal('fi_max=');
var S_min:=ReadlnReal('S_min=');
var S_max:=ReadlnReal('S_max=');
var L:=ReadlnReal('L=');
var W:=ReadlnReal('W=');
var alpha:=ReadlnReal('alpha=');
var betta:=ReadlnReal('betta=');
var a, b:real;
var x,y:real;
var T_max:real;
var S:real;
y:=(S_max**2-S_min**2)/(cos(alpha+betta+fi_min)-cos(alpha+betta+fi_max));
x:=S_min**2+y*cos(alpha+betta+fi_min);
a:=((x+y)**(1/2)+(x-y)**(1/2))/2;
b:=((x+y)**(1/2)-(x-y)**(1/2))/2;
S:=(a**2+b**2-2*a*b*cos(alpha+betta+fi_))**(1/2);
T_max:=(W*L*S)/(a*b*sin(alpha+betta));
Println(a, b);
Println(T_max);
end.
Begin
var fi_min:=ReadlnReal('fi_min=');
var fi_:=ReadlnReal('fi_=');
var fi_max:=ReadlnReal('fi_max=');
var S_min:=ReadlnReal('S_min=');
var S_max:=ReadlnReal('S_max=');
var L:=ReadlnReal('L=');
var W:=ReadlnReal('W=');
var alpha:=ReadlnReal('alpha=');
var betta:=ReadlnReal('betta=');
var a, b:real;
var x,y:real;
var T_max:real;
var S:real;
y:=(S_max**2-S_min**2)/(cos(alpha+betta+fi_min)-cos(alpha+betta+fi_max));
x:=S_min**2+y*cos(alpha+betta+fi_min);
a:=((x+y)**(1/2)+(x-y)**(1/2))/2;
b:=((x+y)**(1/2)-(x-y)**(1/2))/2;
S:=(a**2+b**2-2*a*b*cos(alpha+betta+fi_))**(1/2);
T_max:=(W*L*S)/(a*b*sin(alpha+betta));
Println(a, b);
Println(T_max);
end.