Use odd or even parity. The group agrees that the first person will say the the colour he/she see's the odd number of hats. The next person can deduce...