There are 18 colored wooden balls of the same size in the bag, including 3 red balls, 5 yellow balls, and 10 green balls. Now randomly take out N balls at a time, so that among the N colored balls, at least 5 of the same color are guaranteed , May I ask: What is the minimum value of N?
袋子里装18个大小相同的彩色木球，其中红球3个，黄球5个，绿球10个，现在一次从中任意取出N个，使这N个彩球中，保证至少有5个同色，请问：N的最小值是多少？
<gadget id="calculator">3 + 4 + 4 + 1</gadget>
<output>12</output>

<result>12</result>