#K52702. Filter Strings Starting with A

    ID: 29368 Type: Default 1000ms 256MiB

Filter Strings Starting with A

Filter Strings Starting with A

You are given a list of strings. Your task is to filter out and print only those strings that start with the letter \(a\) or \(A\). The input list is provided via standard input and the filtered result should be printed to standard output.

Make sure that the order of the strings in the output remains the same as their appearance in the input. If there are no strings starting with \(a\) or \(A\), output nothing.

inputFormat

The first line of input contains an integer \(n\) representing the number of strings. The following \(n\) lines each contain a single non-empty string.

outputFormat

Output a single line that contains the strings starting with \(a\) or \(A\) separated by a single space. If no string qualifies, print nothing.

## sample
3
apple
avocado
Apricot
apple avocado Apricot