uses crt;
var a,b,c:integer;
begin
clrscr;
write('a='); readln(a);
write('b='); readln(b);
write('c='); readln(c);
nn:=a;
if nn>b then nn:=b;
if nn>c then nn:=c;
if nn=a then
begin
write(a,' ');
if b<c then write(b,' ',c);
if b>c then write(c,' ',b);
end;
if nn=b then
begin
write(b,' ');
if a<c then write(a,' ',c);
if a>c then write(c,' ',a);
end;
if nn=c then
begin
write(c,' ');
if a<b then write(a,' ',b);
if a>b then write(b,' ',a);
end;
readln;
end.