#K54152. Filter Numbers Greater Than Five

    ID: 29690 Type: Default 1000ms 256MiB

Filter Numbers Greater Than Five

Filter Numbers Greater Than Five

You are given a list of integers. Your task is to filter out and print all numbers that are strictly greater than 5. The numbers should be printed in the same order as they appear in the input.

Use standard input (stdin) to read the data and standard output (stdout) to print the result.

Note: If no number is greater than 5, print an empty line.

For example:

Input:
5
1 6 3 7 9

Output: 6 7 9

</p>

inputFormat

The first line of input contains an integer N, representing the number of elements in the list. The second line contains N space-separated integers.

outputFormat

Output the numbers that are greater than 5 separated by a single space. If there are no such numbers, output an empty line.## sample

5
1 6 3 7 9
6 7 9

</p>