red color - 1 second of silence
blue color - 2 seconds
green - 3 seconds
The 100th person remains silent for 1/2/3 seconds (depending on the color of the next wise man's hat) and guesses the color. The next wise man looks at the color of the person in front, remains silent for the required time, and names his color. And so on.
Exactly 99 wise men will survive, i.e., 99%.

