The poor gingerbread men want to survive to Xmas (they don't mind being eaten afterwards). If at least one of them doesn't guess his hat correctly, they will all be cruelly eaten before Xmas. This is a modified version of some puzzles I found out there...
Will you save them?