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