Nikolay Domashenko's submission of Count the ACs | CodeChef