There are 59 balls of four different colors in a box. If 51 balls are taken then at least one ball of each color appears among the taken balls. What is the minimum number of balls that must be taken so that at least three different colors appear among the taken balls?