Problem 5. Mom baked pies - three with rice, three with cabbage, and one with cherries - and laid them out in a circle on a plate (see fig.). Then she put the plate in the microwave to warm them up. On the outside, all the pies look the same.

![](https://cdn.mathpix.com/cropped/2024_05_06_03d5e2dee9da9ea28fdcg-04.jpg?height=307&width=311&top_left_y=1516&top_left_x=951)
Masha knows how they were arranged, but she doesn't know how the plate was rotated. She wants to eat the cherry pie, considering the others to be unappetizing. How can Masha definitely achieve this, biting into as few unappetizing pies as possible

[7 points] (A. V. Khachaturyan)

![](https://cdn.mathpix.com/cropped/2024_05_06_03d5e2dee9da9ea28fdcg-05.jpg?height=736&width=917&top_left_y=395&top_left_x=266)