Oleksandr Kulkov's submission of Villages and Tribes | CodeChef