while 1:n=map(int,raw_input().split());print`sorted(a+b for i,a in enumerate(n)for b in n[i+1:])`.replace(' ','')

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top