for i in range(1,196): while i-int(str(i)[::-1]):i+=int(str(i)[::-1]) print i