Petr Mitrichev's submission of Bear and House Queries | CodeChef