d=0 s="" for c in raw_input()+" ": s=[s," "*~-len(s)][d]+c;d^="0">c if d:print s