codeforces C - Dwarves, Hats and Extrasensory Abilities

NoSuchKey