m@main=getLine>>=putStrLn.unwords.take 8.f.words>>m f[x,y]=x:f[y,y++x]