Pizza problem