Task No. 1.1

## Condition:

Five friends - Masha, Nastya, Irina, Olya, and Anya - meet in the park every day after buying ice cream from the shop around the corner. One day, the girls had a conversation.

Irina: I was the first in line!

Olya: No one was after me.

Anya: Only one person was after me.

Masha: There were five people in front of me.

Nastya: I was standing next to Irina.

The girls are friends, so they don't lie to each other. How many people were between Masha and Nastya?
Answer: 3

Exact match of the answer - 1 point

## Solution.

From the statements of Irina and Olya, it is clear that they were first and last, respectively. Since there was only one person after Anya, it was Olya. Nastya stood next to Irina, but she could not have stood in front of her, so Nastya was second. This means that Masha stood somewhere between Nastya and Anya, and since there were five people in front of her, two of whom were Irina and Nastya, there were exactly three people between Masha and Nastya.