Flavors

I am going to have ice cream with my friends, and I don’t know which
flavor I should order. Since I like letters, my favorite flavor is the
one that comes first in alphabetical order.

Input

The input consists of multiple test cases. Each test case starts with a
number N of choices on a single line, satisfying 1 ≤ N ≤ 10. On the next
line are N different names of ice cream flavors. The input ends with the
value 0 on a single line, which should not be processed.

Output

For each test case, write the following on a single line:
My favorite flavor is X
Here, X is the flavor I prefer among the different choices.

Problem information

Author: Anders Jonsson

Generation: 2026-01-25T22:29:55.944Z

© Jutge.org, 2006–2026.
https://jutge.org
