print(tuple(sorted(map(int, "10 5 20".split()))))
Standard input is empty
(5, 10, 20)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!