Cannibals in the jungle capture three men. The men are given one chance to escape with their lives. The men are lined up and bound to stakes such that one man can see the backs of the other two, the middle man can see the back of the front man, and the front man cannot see anybody. The men are shown five hats, three of which are black and two of which are white. Then the men are blindfolded, and one of the five hats is placed on each man’s head. The remaining two hats are hidden away. The blindfolds are removed. The men are told that if just one of the men can guess what hat he is wearing, they may all go free. Time passes. Finally, the front man, who cannot see anyone, correctly guesses the color of his hat. What color was it, and how did he guess correctly?