
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
In a certain country, there were two villages located near each other, $A$ and $B$. The inhabitants of village $A$ always told the truth, while the inhabitants of village $B$ always lied. A tourist traveling through this country found himself in one of these villages. To find out in which village he was and from which village the encountered person was, the tourist could ask the first person he met a question that could be answered with "yes" or "no". However, that person could be either an inhabitant of $A$ or $B$ (as they could visit each other). What is the minimum number of questions and what question(s) should the tourist ask the first person he meets to determine which village he is in and the village of the person he meets?

Present the answer in LaTex format: \boxed{Your answer}
user