[Codeforces 115E]Linear Kingdom Races

NoSuchKey