main=readLn>>=mapM putStrLn.tail.(iterate f[" "," /\\","/__\\"]!!).pred (#)=zipWith(++) f x@(s:_)=map(s++)x++tail(x#scanr(:)""s#x)