Andrey's submission of Parity tree | CodeChef