try: while 1: r=list(raw_input()) i=0;c=r[:] while c and c.pop()!='0': i+=1;r[-i]='0' if i