#K50007. Prefix Strings

    ID: 28768 Type: Default 1000ms 256MiB

Prefix Strings

Prefix Strings

You are given a single-character prefix and an integer n representing the number of strings. Following that, there are n lines each containing a string. Your task is to output each string prefixed with the given character.

For example, if the prefix is '#' and the strings are "apple", "banana", "cherry", then your output should be:

#apple
#banana
#cherry

Pay attention to input and output formats: input is provided via standard input (stdin) and output must be printed to standard output (stdout).

inputFormat

The input is given from stdin and has the following format:

  1. The first line contains a single character which acts as the prefix.
  2. The second line contains an integer n, the number of strings.
  3. Each of the following n lines contains one string.

outputFormat

Print exactly n lines to stdout. Each line should be the corresponding input string prefixed by the given character.

There should be no extra spaces or lines in the output.

## sample
#
3
apple
banana
cherry
#apple

#banana #cherry

</p>