Anton Lunyov's submission of Magic Pairs | CodeChef