I think I have a solution - but am I right in thinking that the only reason this solution works is because all the dragons instantly deduce the logic? I.e. this would not work if one dragon worked it out before another dragon, they would all have to arrive at the same conclusion at the same time.