Mental calculation by eban

a,b=gets.split[-2,2].map &:to_i
?d.times{$><<[(b=a+a=b)%10," "]}

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

download

return top