f=lambda x:x if x==x[::-1]else f(str(int(x)+int(x[::-1]))) for i in range(1,196):print(f(str(i)))