Nikolay Domashenko's submission of Counting Flags | CodeChef