b=lambda q:[b(q[:-1])+'0',q[:-1]+'1'][q[-1]<'1']if q!=''else'' while 1:print b(raw_input())