for i in range(1,101): a=1 while not str(a).startswith(str(i)):a*=2 print(a)