Sophie could for example ask Martin the following:
"I have the number 1 or 2 in mind.
Is the number that you have in mind larger than the number I have in mind?"
The answer "yes" means that Martin has the number 3 in mind, "I don't know" means 2,
and "no" means 1.