#C6725. Longest String Finder
Longest String Finder
Longest String Finder
You are given a list of strings. Your task is to find and print the longest string in the list. If there are multiple strings with the maximum length, output the one which appears first in the list. If the list is empty, output an empty string.
The input starts with an integer \(n\) indicating the number of strings. Then, \(n\) lines follow, each containing one string. Note that strings may contain spaces.
inputFormat
The first line contains an integer \(n\), which is the number of strings. Each of the following \(n\) lines contains a string. Strings can have spaces.
outputFormat
Print a single line containing the longest string. If more than one string has the maximum length, print the first one. If no strings are provided (i.e., \(n = 0\)), print an empty line.
## sample4
apple
banana
cherry
date
banana
</p>