fixed egg problem