f(x:y)='<':x++'>':f(drop 1y)++"" f[]="" m@main=getLine>>=putStrLn.f.words>>m