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