program xyz;
var x, y, z: integer;
    
begin
    read(x,y,z); write(x,' ', y,' ',z);
    writeln;
    
    if (x >= y) and (x >= z) then
    	if y > z then 
    		write(x,' ',y,' ',z)
    	else
    		write (x,' ',z,' ',y)
    else if (y >= x) and (y >= z) then
    	if x > z then
    		write(y,' ',x,' ',z)
    	else 
    		write(y,' ',z,' ',x)
    else if (z >= x) and (z >= y) then
    	if x > y then
    		write(z,' ',x,' ',y)
    	else
    		write(z,' ',y,' ',x)
    		
end.