class Integer
  def ordinalize
    num = self.abs
    ordinal = if (11..13).include?(num % 100)
      
    else
      case num % 10
        when 1; 
        when 2; 
        when 3; 
        else    
      end
    end
    
  end
end

[(0..25),(250..265),(1000..1025)].each{|r| puts r.map(&:ordinalize).join(); puts}