https://www.spoj.com/problems/CHOCOLA/