Perfect Princess Problem