#K54152. Filter Numbers Greater Than Five
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</p>Output: 6 7 9
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>