#P11395. Avoid Eat Query
Avoid Eat Query
Avoid Eat Query
In the meow group, the act of eating "meow" (i.e. saying "eat") is considered bad civilization. You are given \(q\) queries, each in the form A or B?
where \(A\) and \(B\) are non-empty strings consisting only of lowercase letters.
For each query, you must output one of the strings \(A\) or \(B\) that is not equal to eat
. In particular, if both \(A\) and \(B\) are equal to eat
, then output or
.
inputFormat
The first line contains an integer \(q\) (e.g. \(1 \leq q \leq 10^5\)). Each of the next \(q\) lines contains a query in the exact format: A or B?
where A
and B
are non-empty strings consisting only of lowercase English letters.
outputFormat
For each query, output your answer on a new line. The answer should be one of \(A\) or \(B\) which is not eat
. If both are eat
, output or
.
sample
3
eat or candy?
fish or eat?
eat or eat?
candy
fish
or
</p>