r=reverse;t=init.scanr(:)[];main=interact$unlines.r.(map r.t.r=<<).t