s=eval(input())s.sort()x_list=''.join(map(str,s))result=int(x_list)print(result)
[7,4,5,3,2,1,6]
1234567
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!