import List m@main=do l<-getLine;print$sort[x+a|a:b<-tails$map read$words l,x<-b];m