def Include3(n) return true if n%10 == 3 return Include3(n/10) false end startn, endn = gets.chomp.split(" ").map &:to_i (startn..endn).each { |n| puts n if Include3(n) }