2013 Hackercup round 1 : hackercup cards problem