Zhang Yide's submission of Bear and Haircut | CodeChef