fork download
  1. program xyz;
  2. var x, y, z: integer;
  3.  
  4. begin
  5. read(x,y,z); writeln(x,' ', y,' ',z);
  6. if x <=y then
  7. begin
  8. if x<=z then
  9. begin
  10. write(x, ' ');
  11. if y<=z then write(y,' ',z)
  12. else write(z,' ',y);
  13. end
  14. else write (z,' ',x,' ',y);
  15. end
  16. else
  17. begin
  18. if y<=z then
  19. begin
  20. write(y,' ');
  21. if x<=z then write(x,' ',z)
  22. else write(z,' ',x)
  23. end
  24. else write (z,' ', y,' ',x)
  25. end
  26.  
  27. end.
Success #stdin #stdout 0s 5296KB
stdin
3 5 2
stdout
3 5 2
2 3 5