for i in range(1,101): s=1 while`s`.find(`i`):s*=2 print s