z1j1n1's submission of Villages and Tribes | CodeChef