Problem B
Pea Soup and Pancakes

Input
The first line of input contains a number
Output
Output a single line. If at least one restaurant has both “pea soup” and “pancakes” as menu items, output the name of the first of those restaurants, by the order in which the restaurants appear in the input. Otherwise, output “Anywhere is fine I guess”.
Sample Input 1 | Sample Output 1 |
---|---|
2 2 q potatoes salad 3 nymble pancakes pea soup punsch |
nymble |
Sample Input 2 | Sample Output 2 |
---|---|
4 2 asian wok house paa soup pancakes 2 kebab kitchen pea soup pancakes 2 la campus tasty pea soup pancakes 3 slime stand slime pea soup and pancakes slime |
Anywhere is fine I guess |