The man at the back says red if he can see an odd number of red hats and blue if it is even. He has a fifty-fifty chance himself, but the next man counts the red hats in front of him, and if odd or even has changed, his own hat is red. Everyone after him does the same, keeping track of the calls behind.