"The men initially don't know what colour hat they are wearing"
this means that later they realised what colour hat they are wearing by looking at their own had and they can should out whatever colour it is.
hope this is correct answer.
do publish the answer