#C12881. Filter Above Threshold
Filter Above Threshold
Filter Above Threshold
You are given a list of integers and a threshold value. Your task is to filter and print only those numbers from the list which are strictly greater than the threshold.
The input will be provided via standard input (stdin) and the output should be printed to standard output (stdout) in a single line, with the filtered numbers separated by a single space.
If no numbers satisfy the condition, print an empty line.
Note: The input format is described in detail below.
inputFormat
The input consists of three lines:
- The first line contains a single integer n denoting the number of elements in the list.
- The second line contains n space-separated integers.
- The third line contains a single integer T denoting the threshold.
If n is 0, the second line will be empty.
outputFormat
Output a single line containing all integers from the list that are strictly greater than T. The integers should be printed in the same order as they appear in the input, separated by a single space. If no number meets the criteria, output an empty line.
## sample5
1 5 10 15 20
10
15 20