import os
def length(number):
n = number
l = 0
while n > 0 :
n = n / 10
l+=1
return l
def isok(number):
res = 0
n = number
while n > 0:
res = res * 10 + n % 10
n = n / 10
if res == number :
return 1
return 0
def test(a):
b2 = a * 9
i = 0
while i < 2:
b2 *= a
b2 *= 9
if (isok(b2) == 1):
print ("%d => %d\n" % (a, b2))
break
i+=1
return 0
def skip(a):
b = 1
n = a
while n > 0 :
if ((n % 10) == 0):
a += b
n = n / 10
b = b * 10
return a
def main():
print skip(10089000)
i=11111111
while i <= 99999999:
i = skip(i)
test(i)
i+=1
print "over"
return 0
if __name__ == "__main__":
main()