r=reverse f=r.init.scanr(:)[] main=interact$unlines.(>>=map r.f.r).f