http://www.spoj.com/problems/OPCPIZZA/