Repository of the HS2012 contest problem. Problem code: HS12BAPE