Anton Demidov's submission of Stone | CodeChef