main=interact$take 199.f.reverse.map read.words f(x:y:_)=last(show$x+y):' ':f[x+y,x]