a=['']*117 for b in a: try: _=c-6;c+=2 for d in raw_input(b):a[_]=a[_][:~0].ljust(c+c-_)+d+'\n';_-=2 except:c=~9