i=1;exec'j=1\nwhile str(j).find(str(i)):j*=2\nprint j;i+=1;'*100