#!/usr/bin/env python import sys def to_ul( lst ): buf = [] for cols in lst: dirty = False for ( i, col ) in enumerate( cols ): if not col and not dirty: continue dirty = True if not col: col = "''" s = col.replace( '\n', '\\n' ) s = ' ' * ( i * 2 ) + s buf.append( s ) return '\n'.join( buf ) if __name__ == "__main__": f = sys.stdin s = f.read() lst = eval( s ) s = to_ul( lst ) print( s ) # EOF