Flavors X76679


Statement
 

pdf   zip

html

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.

Public test cases
  • Input

    3
    Strawberry Chocolate Vanilla
    5
    Pistachio Stracciatella Blueberry Raspberry Liquorice
    0
    

    Output

    My favorite flavor is Chocolate
    My favorite flavor is Blueberry
    
  • Information
    Author
    Anders Jonsson
    Language
    English
    Official solutions
    C++
    User solutions
    C++