Ivan Deka's submission of Magic School | CodeChef