var a,b,c:integer;
begin
readln(a);readln(b);readln(c);
if (a*b < a*c)and (a*b < b*c)then
writeln(a*b)else
if (a*c < a*b)and (a*c < b*c)then
writeln(a*c)else writeln(b*c);
end.
var a,b,c:integer;
begin
readln(a);readln(b);readln(c);
if (a*b < a*c)and (a*b < b*c)then
writeln(a*b)else
if (a*c < a*b)and (a*c < b*c)then
writeln(a*c)else writeln(b*c);
end.