1.upto(195){|i|i+=K while i!=K=i.to_s.reverse.to_i puts i}