procedure swap(var a, b: real);
var
c: real;
begin
c := b;
b := a;
a := c;
end;
var
a, b, c, d: real;
begin
readln(a, b, c);
if (a < b) then
swap(a, b);
if (b < c) then
swap(b, c);
if (a < b) then
swap(a, b);
writeln('min = ', c, #13, 'max = ', a);
end.