Doughnuts problem v1.