1.upto(?Ã){|i|i+=J while i!=J=i.to_s.reverse.to_i;p i}