How can an infinite number of mathematicians figure out their own hat colours?
At codegolf.stackexchange.com, smaller is better.