String - Split


#!/usr/bin/python
import string
a = raw_input("d")
print a
b=string.split(a," ")
b.sort()
print a,"\n"
for i in b:
print i,""